Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3.7"
- services:
- web:
- build:
- context: ./app
- dockerfile: Dockerfile.prod
- command: gunicorn fullstack_application.wsgi:application --bind 0.0.0.0:8000
- volumes:
- - static_volume:/home/app/web/static
- - media_volume:/home/app/web/media
- expose:
- - 8000
- env_file:
- - ./.env.prod
- depends_on:
- - db
- db:
- image: postgres:12.0-alpine
- volumes:
- - postgres_data:/var/lib/postgresql/data/
- env_file:
- - ./.env.prod.db
- nginx:
- build: ./nginx
- volumes:
- - static_volume:/home/app/web/static
- - media_volume:/home/app/web/media
- ports:
- - 1337:80
- depends_on:
- - web
- volumes:
- postgres_data:
- static_volume:
- media_volume:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement