-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose-rdsversion.yml
55 lines (49 loc) · 1.2 KB
/
docker-compose-rdsversion.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
# Docker Compose file Reference (https://docs.docker.com/compose/compose-file/)
version: '3.7'
# Define services
services:
# Frontend
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:
build:
context: ./Middleware/emr
dockerfile: Dockerfile
restart: always
environment:
- AES_SECRET_KEY=${AES_SECRET_KEY}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
ports:
- "8080:8080"
networks:
- emr_network
# schedulers backend tasks
schedulers:
build:
context: ./Middleware/schedulers
dockerfile: Dockerfile
restart: always
environment:
- AES_SECRET_KEY=${AES_SECRET_KEY}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
networks:
- schedulers_network
# Networks to be created to facilitate communication between containers
networks:
schedulers_network:
driver: bridge
frontend_network:
driver: bridge
emr_network:
driver: bridge