-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
89 lines (81 loc) · 1.87 KB
/
Copy pathdocker-compose.yml
File metadata and controls
89 lines (81 loc) · 1.87 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Docker Compose file Reference (https://docs.docker.com/compose/compose-file/)
version: '3.7'
volumes:
mysql_data:
driver_opts:
type: none
device: /data/quickfabric/mysql
o: bind
# Define services
services:
# Frontend
frontend:
container_name: quickfabric_frontend
build:
context: ./Frontend
dockerfile: Dockerfile
restart: always
depends_on:
- emr
ports:
- "80:80"
networks: # Networks to join (Services on the same network can communicate with each other using their name)
- frontend_network
- emr_network
# EMR Configuration
emr:
container_name: quickfabric_emr
build:
context: ./Middleware/emr
dockerfile: Dockerfile
restart: always
environment:
- AES_SECRET_KEY=${AES_SECRET_KEY}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
depends_on:
- db
ports:
- "8080:8080"
networks:
- db_network
- emr_network
# schedulers backend tasks
schedulers:
container_name: quickfabric_scheduler
build:
context: ./Middleware/schedulers
dockerfile: Dockerfile
restart: always
environment:
- AES_SECRET_KEY=${AES_SECRET_KEY}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
depends_on:
- db
networks:
- db_network
- schedulers_network
# Database (Mysql)
db:
container_name: quickfabric_db
build:
context: ./DB
dockerfile: Dockerfile
restart: always
volumes:
- mysql_data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_PASSWORD}
ports:
- "3306:3306"
networks:
- db_network
# Networks to be created to facilitate communication between containers
networks:
db_network:
driver: bridge
schedulers_network:
driver: bridge
frontend_network:
driver: bridge
emr_network:
driver: bridge