-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.yml
49 lines (45 loc) · 1005 Bytes
/
local.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'
services:
pg:
env_file:
- .env
image: postgres:latest
environment:
- POSTGRES_HOST=${DB_HOST}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=5432
ports:
- "${DB_PORT}:5432"
volumes:
- postgresql-data:/var/lib/postgresql/data
kpi_web:
env_file:
- .env
build:
context: .
dockerfile: ./docker/local/Dockerfile
command: gunicorn --bind 0.0.0.0:8000 --timeout 600 kpi.wsgi
volumes:
- ./kpi:/code/kpi
ports:
- "${WEB_PORT}:8000"
environment:
- DB_HOST=${DB_HOST}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_DATABASE=${DB_NAME}
- DB_PORT=5432
- SECRET_KEY=${SECRET_KEY}
server:
image: nginx
ports:
- "${NGINX_PORT}:80"
volumes:
- ./nginx/local/default.conf:/etc/nginx/conf.d/default.conf
restart: "no"
volumes:
postgresql-data:
networks:
default:
name: staging