forked from Silicon-Valley-Pre-Internship/Linist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (58 loc) · 1.08 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
version: '3'
services:
mysql_db:
image: mysql:latest
restart: always
networks:
- app-tier
volumes:
- .DB/mysql/db:/var/lib/mysql
ports:
- "3306:3306"
cap_add:
- SYS_NICE
environment:
- MYSQL_DATABASE=app
- MYSQL_USER=user
- MYSQL_PASSWORD=1234
- MYSQL_ROOT_PASSWORD=1234
flask_app:
build:
context: .
dockerfile: ./flask/Dockerfile
ports:
- "5000:5000"
links:
- mysql_db:mysql_db
depends_on:
- mysql_db
networks:
- app-tier
restart: always
volumes:
- ./flask/app:/app
react-native:
build:
context: .
dockerfile: ./frontend/Dockerfile
ports:
- 8081:8081
volumes:
- ./frontend:/node
networks:
- app-tier
nginx:
image: nginx:latest
ports:
- "80:80"
- "8000:8000"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- flask_app
networks:
- app-tier
restart: "on-failure"
networks:
app-tier:
driver: bridge