-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
36 lines (36 loc) · 1.02 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
version: '3.0'
services:
postgres:
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
container_name: postgres_service
command: postgres -c 'max_connections=20'
volumes:
- ./pg:/app/local_data
build:
context: ./pg
python:
build:
context: ./src
image: landak_web
depends_on:
- postgres
container_name: landak_web
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PORT=8000
- PYTHONPATH='/usr/src/app'
- WEB_CONCURRENCY=3
- MAPBOX_TOKEN=${MAPBOX_TOKEN}
volumes:
- ./src:/usr/src/
working_dir: /usr/src/
ports:
- "8000:8000"
tty: true
stdin_open: true
command: /usr/local/bin/gunicorn --reload "app.web:app" -b 0.0.0.0:8000