-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
65 lines (60 loc) · 1.48 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
version: '3'
services:
db_user_data:
image: mysql:5.7
#note that specifically declaring a container name has Docker Swarm implications. Since we are not using swarm this has been ignored.
container_name: db_user_data
volumes:
- dbvolume:/var/lib/mysql
restart: always
environment:
- MYSQL_ROOT_PASSWORD
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
ports:
- "33061:3306"
fiat_engine:
restart: always
build: ./web-services/fiat-engine
container_name: fiat_engine
environment:
- MYSQL_HOST=db_user_data
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
ports:
#debug port
- "8000:8000"
backend:
restart: always
build: ./web-services/auditing
ports:
#debug port
- "50505:50505"
volumes:
#make the code folder visible from within the container
- ./web-services/auditing:/code
environment:
- MYSQL_HOST=db_user_data
- PYTHON_HOST=fiat_engine
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
- MYSQL_ROOT_PASSWORD
#set the path as the location within the container after web-services directory is copied.
- FIREBASE_CRED_PATH=/code/firebase-credentials.json
depends_on:
- db_user_data
- fiat_engine
frontend:
restart: always
build: ./web-ui
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
depends_on:
- backend
volumes:
dbvolume: