-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (51 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
51 lines (51 loc) · 1.25 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.7"
services:
txtgen:
image: elsahib/app2
build: ./txtgen
ports:
- "8000:8000"
numgen:
image: elsahib/app3
build: ./numgen
ports:
- "8001:8000"
przgen:
image: elsahib/app4
build: ./przgen
depends_on:
- numgen
- txtgen
ports:
- "8002:8000"
prize:
image: elsahib/app1
build: ./prize
depends_on:
- numgen
- txtgen
- przgen
- database
ports:
- "80:8000"
environment:
SECRET_KEY: ${SECRET_KEY}
DATABASE_URI: ${DATABASE_URI}
DBUser: ${DBUser}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
DBserv: ${DBserv}
command: bash -c './chkDB.sh && gunicorn --workers=4 --bind=0.0.0.0:8000 app:app'
labels:
kompose.service.type: LoadBalancer
database:
image: mysql:5.7
volumes:
- "mydb:/var/lib/mysql"
container_name: mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: prizes
volumes:
mydb: