Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.7' services: web: build: ./app command: gunicorn hello_django.wsgi:application --bind 0.0.0.0:8000 volumes: - ./app/:/usr/src/app/ - static_volume:/usr/src/app/staticfiles - media_volume:/usr/src/app/mediafiles expose: - 8000 environment: - SECRET_KEY=please_change_me - SQL_ENGINE=django.db.backends.postgresql - SQL_DATABASE=postgres - SQL_USER=postgres - SQL_PASSWORD=postgres - SQL_HOST=db - SQL_PORT=5432 - DATABASE=postgres depends_on: - db db: image: postgres:10.5-alpine volumes: - postgres_data:/var/lib/postgresql/data/ nginx: build: ./nginx volumes: - static_volume:/usr/src/app/staticfiles - media_volume:/usr/src/app/mediafiles ports: - 1337:80 depends_on: - web volumes: postgres_data: static_volume: media_volume:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement