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:
- - /var/lib/postgresql/data/
- env_file:
- - ./.env
- web:
- image: olegpletnev/yamdb_final:latest
- restart: always
- volumes:
- - static_value:/app/static/
- - media_value:/app/media/
- depends_on:
- - db
- env_file:
- - ./.env
- nginx:
- image: nginx:1.21.3-alpine
- 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:
- static_value:
- media_value:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement