-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
42 lines (39 loc) · 929 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
version: "2"
services:
capport-api:
build: ./capport-api/.
volumes:
- ./capport-api:/app
environment:
FLASK_DEBUG: 1
CAPPORT_BROWSE_URL: "http://localhost:5000/"
CAPPORT_LOGIN_URL: "http://localhost:5000/login"
CAPPORT_TERMS_URL: "http://localhost:5000/terms"
CAPPORT_CREATE_SESSION_URL: "http://localhost:5000/capport/sessions"
MYSQL_DATABASE: capport
MYSQL_HOST: mysql
MYSQL_USER: capport
MYSQL_PASSWORD: capport
ports:
- "5000:5000"
networks:
- front-tier
- back-tier
depends_on:
- mysql
mysql:
image: mysql:5.6
volumes:
- "./.data/db:/var/lib/mysql"
environment:
MYSQL_ROOT_PASSWORD: capport
MYSQL_DATABASE: capport
MYSQL_USER: capport
MYSQL_PASSWORD: capport
ports:
- "3306:3306"
networks:
- back-tier
networks:
front-tier:
back-tier: