-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 1.01 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
version: "3"
services:
database:
restart: always
image: postgres:10.8-alpine
container_name: monitoring-postgres-db
environment:
POSTGRES_USER: postgres
POSTGRES_DB: cc-monitoring
ports:
- "4200:5432"
volumes:
- db-data:/var/lib/postgresql/data
api:
restart: always
build:
context: .
dockerfile: Dockerfile
container_name: monitoring-api
environment:
FLASK_APP_SECRET:
JWT_SALT:
PYTHONDONTWRITEBYTECODE: 1
PYTHONUNBUFFERED: 1
FLASK_ENV: development
DATABASE_USER: postgres
DATABASE_URI: ${DATABASE_URI:-postgresql://postgres:postgres@database:5432/monitor}
TEST_DATABASE_URI: ${TEST_DATABASE_URI:-postgresql://postgres:postgres@database:5432/monitor_test}
FLASK_APP: server.py
PRODUCT_BASE_URL: ${PRODUCT_BASE_URL:-http://127.0.0.1:5000}
ports:
- "${FLASK_PORT:-4000}:5000"
volumes:
- .:/app
depends_on:
- database
links:
- database
volumes:
db-data: