-
Notifications
You must be signed in to change notification settings - Fork 45
/
docker-compose.yml
48 lines (44 loc) · 1.12 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
version: "3"
services:
frontend:
container_name: cfp_v3_frontend
build: frontend
ports:
- 8080:8080
volumes:
- ./frontend:/cfp_v3/frontend
environment:
- VUE_APP_AXIOS_BASE_URL=http://0.0.0.0:5000/
backend:
container_name: cfp_v3_backend
build: backend
ports:
- 5000:5000
volumes:
- ./backend:/cfp_v3/backend
links:
- db:db
environment:
FLASK_APP: app.py
FLASK_ENV: ${FLASK_ENV:-development}
SECRET_KEY: ${SECRET_KEY:-codeforpoznan}
BASE_URL: ${BASE_URL:-localhost}
DB_HOST: ${DB_HOST:-db}
DB_PORT: ${DB_PORT:-5432}
DB_NAME: ${DB_NAME:-cfp_v3}
DB_USER: ${DB_USER:-cfp_v3}
DB_PASSWORD: ${DB_PASSWORD:-cfp_v3}
MAIL_SERVER: ${MAIL_SERVER:-}
MAIL_PORT: ${MAIL_PORT:-}
MAIL_USERNAME: ${MAIL_USERNAME:-}
MAIL_PASSWORD: ${MAIL_PASSWORD:-}
MAIL_SUPPRESS_SEND: ${MAIL_SUPPRESS_SEND:-TRUE}
db:
container_name: cfp_v3_db
image: postgres:9.5
environment:
POSTGRES_DB: cfp_v3
POSTGRES_USER: cfp_v3
POSTGRES_PASSWORD: cfp_v3
ports:
- "5432:5432"