bundesdata_web_app/docker-compose.yml

36 lines
752 B
YAML
Raw Normal View History

2019-02-28 13:09:53 +00:00
version: '3.7'
services:
web:
build: ./app
command: gunicorn bundesdata_app.wsgi:application --bind 0.0.0.0:8000
volumes:
- ./app/:/usr/src/app/
- ./input_volume/:/usr/src/app/input_data
- ./static_volume:/usr/src/app/staticfiles
expose:
- 8000
depends_on:
- db
db:
image: postgres:11.2
environment:
- POSTGRES_USER=postgresUser
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=bundesdataDB
volumes:
- ./postgres_data:/var/lib/postgresql/data/
nginx:
build: ./nginx
volumes:
- ./static_volume:/usr/src/app/staticfiles
ports:
- 8000:80
depends_on:
- web
volumes:
postgres_data:
static_volume:
input_volume: