-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (54 loc) · 962 Bytes
/
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
version: "3.6"
services:
db:
container_name: "db"
restart: always
image: mysql
command: --default-authentication-plugin=mysql_native_password
volumes:
- ./db:/docker-entrypoint-initdb.d
- db_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: neomovie
MYSQL_USER: taker
MYSQL_PASSWORD: taker
cap_add:
- SYS_NICE
networks:
- api-tier
- db-admin
adminer:
image: adminer
restart: always
ports:
- 8080:8080
networks:
- db-admin
api:
restart: always
depends_on:
- db
build: ./api
ports:
- "5001:80"
environment:
FLASK_DEBUG: 1
networks:
- api-tier
- web-tier
web:
restart: always
depends_on:
- db
build: ./web
ports:
- "5000:80"
networks:
- web-tier
volumes:
db_data: {}
networks:
web-tier: {}
api-tier: {}
db-admin: {}