bundesdata_web_app/docker-compose.yml

34 lines
765 B
YAML
Raw Normal View History

2019-02-28 13:09:53 +00:00
version: '3.7'
services:
web:
build: ./app
volumes:
- ./app/:/usr/src/app/
- ./input_volume/:/usr/src/app/input_data
- ./static_volume:/usr/src/app/staticfiles
expose:
- 8000
2020-07-28 14:31:14 +00:00
env_file: .env
2019-02-28 13:09:53 +00:00
depends_on:
- db
2020-07-28 12:48:21 +00:00
command: bash -c /wait-for-it/wait-for-it.sh db:5432 --strict --timeout=0
2019-02-28 13:09:53 +00:00
db:
2020-07-28 14:31:14 +00:00
env_file: .env
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB_NAME: ${POSTGRES_DB_NAME}
expose:
- 5432
2019-02-28 13:09:53 +00:00
image: postgres:11.2
volumes:
- ./postgres_data:/var/lib/postgresql/data/
nginx:
build: ./nginx
volumes:
- ./static_volume:/usr/src/app/staticfiles
ports:
- 8000:80
depends_on:
2020-07-28 14:31:14 +00:00
- web