forked from WISE-Community/WISE-Docker-Dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (48 loc) · 1.23 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3.8'
services:
score-redis:
image: redis
container_name: score-redis
score-mysql:
image: mysql:8
container_name: score-mysql
environment:
- MYSQL_ROOT_PASSWORD=iamroot
- MYSQL_DATABASE=wise_database
- MYSQL_USER=wiseuser
- MYSQL_PASSWORD=wisepass
volumes:
- './docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d'
- './data:/var/lib/mysql'
score-api:
image: wiseberkeley/wise-api-dev:latest
container_name: score-api
expose:
- '5005'
depends_on:
- score-redis
- score-mysql
ports:
- '5005:5005'
- '8080:8080'
volumes:
- '../SCORE-API:/app'
command: mvn spring-boot:run -Dspring-boot.run.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=*:5005" -Dspring-boot.run.profiles=dockerdev
score-client:
image: wiseberkeley/wise-client-dev:latest
container_name: score-client
depends_on:
- score-api
ports:
- '4200:4200'
volumes:
- '../SCORE-Client:/app'
score-nginx:
image: nginx:1.13
container_name: score-nginx
depends_on:
- score-client
ports:
- '80:80'
volumes:
- '${PWD}/nginx/conf.d:/etc/nginx/conf.d'