bundesdata_web_app/docker-compose.yml

36 lines
767 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:
2019-03-02 13:18:03 +00:00
- POSTGRES_USER=databaseUserName
- POSTGRES_PASSWORD=totalSecurePassword
- POSTGRES_DB=databaseName
2019-02-28 13:09:53 +00:00
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: