forked from CryptoCaddy/web-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
67 lines (63 loc) · 1.35 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '2.1'
services:
static:
restart: always
build: ./web-ui
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
links:
- web:web
web:
restart: always
build: ./web-services
#we compile here instead of at build because when running we get a persistent volume that we can use for maven's cache
command: "sh -c 'mvn package && java -jar services/auditing/target/auditing-1.0.jar'"
ports:
- "8080:8080"
volumes:
- ./web-services:/code
- web-services-maven:/root/.m2:rw
links:
- fiat
- mysql
environment:
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
depends_on:
mysql:
condition: service_healthy
fiat:
restart: always
build: ./fiat-engine
ports:
- "5000:5000"
links:
- mysql
environment:
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
depends_on:
mysql:
condition: service_healthy
mysql:
restart: always
image: mysql:latest
volumes:
- data_sql:/var/lib/mysql
environment:
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
- MYSQL_ROOT_PASSWORD
healthcheck:
test: mysqladmin ping -p$MYSQL_ROOT_PASSWORD
interval: 20s
timeout: 5s
retries: 30
volumes:
data_sql:
web-services-maven: