Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.8'
- services:
- db:
- image: postgres:13.0-alpine
- volumes:
- - postgres_data:/var/lib/postgresql/data/
- env_file:
- - ./.env
- web:
- build:
- context: ../api_yamdb
- dockerfile: Dockerfile
- restart: always
- ports:
- - "8000:8000"
- volumes:
- - static_value:/code/static/
- - media_value:/code/media/
- depends_on:
- - db
- env_file:
- - ./.env
- nginx:
- image: nginx:1.19.3
- ports:
- - "80:80"
- volumes:
- - ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- - static_value:/var/html/static/
- - media_value:/var/html/media/
- depends_on:
- - web
- volumes:
- postgres_data:
- static_value:
- media_value:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement