-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
51 lines (51 loc) · 1 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
51 lines (51 loc) · 1 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
version: '3.8'
services:
frontend:
image: mrbilalshafiq/frontend:latest
build: ./1-frontend
deploy:
replicas: 1
ports:
- "5000:5000"
environment:
MYSQL_DATABASE: db
MYSQL_ROOT_PASSWORD: root
SECRET_KEY: YOUR_KEY
chargen:
image: mrbilalshafiq/chargen:latest
build: ./2-chargen
deploy:
replicas: 2
numgen:
image: mrbilalshafiq/numgen:latest
build: ./3-numgen
deploy:
replicas: 2
prizegen:
image: mrbilalshafiq/prizegen:latest
build: ./4-prizegen
deploy:
replicas: 2
nginx:
image: nginx:latest
ports:
- target: 80
published: 80
protocol: tcp
volumes:
- type: bind
source: ./nginx/nginx.conf
target: /etc/nginx/nginx.conf
db:
build: ./db
image: mrbilalshafiq/db:latest
ports:
- target: 3306
published: 3306
environment:
MYSQL_DATABASE: db
MYSQL_ROOT_PASSWORD: root
volumes:
- myvolume:/var/lib/mysql
volumes:
myvolume: