forked from JDIS/flaggr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
49 lines (43 loc) · 914 Bytes
/
docker-compose.dev.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
version: "3.3"
services:
db:
image: postgres:10.10-alpine
environment:
POSTGRES_USER: jdisctf
POSTGRES_PASSWORD: jdisctf
POSTGRES_DB: jdisctf_db
volumes:
- ./postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
restart: always
migration:
environment:
FLASK_APP: main.py
POSTGRES_URL: db:5432
POSTGRES_USER: jdisctf
POSTGRES_PW: jdisctf
POSTGRES_DB: jdisctf_db
build: ./backend
command: sh -c "sleep 10s && flask db upgrade"
depends_on:
- db
nginx:
build: ./nginx
ports:
- "80:80"
- "443:443"
restart: always
depends_on:
- frontend-user
- frontend-admin
- backend
backend:
build: ./backend
restart: always
frontend-user:
build: ./frontend/user
restart: always
frontend-admin:
build: ./frontend/admin
restart: always