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 depends_on: - db command: bash -c "/wait-for-it/wait-for-it.sh db:5432 --strict --timeout=0 -- bash django-entrypoint.sh && gunicorn bundesdata_app.wsgi:application --bind 0.0.0.0:8000" db: image: postgres:11.2 environment: - POSTGRES_USER=bundesdata_app_user - POSTGRES_PASSWORD=v3ry53cr3t - POSTGRES_DB=bundesdata_db 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: