Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3"
- services:
- back:
- build:
- context: .
- dockerfile: docker/web/dev/Dockerfile
- volumes:
- - ./back:/app
- - static:/app/static
- - media:/app/media
- depends_on:
- - db
- environment:
- - DJANGO_SETTINGS_MODULE=settings.dev
- - FRONTEND_SITE=https://developerstest.ru
- entrypoint: /entrypoint.sh
- restart: always
- networks:
- - union-network
- server:
- image: nginx:1.18
- volumes:
- - ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- - static:/app/static/storage/:ro
- - media:/app/media/:ro
- - ./front_app/build:/app/frontend
- ports:
- - 8000:80
- depends_on:
- - back
- restart: always
- networks:
- - union-network
- redis:
- image: redis:alpine
- networks:
- - union-network
- celery:
- build:
- context: .
- dockerfile: docker/web/prod/Dockerfile
- command: celery -A back worker -l info
- volumes:
- - ./back:/app
- depends_on:
- - redis
- networks:
- - union-network
- db:
- image: postgres:12.0-alpine
- volumes:
- - ./bot:/bot
- - postgres_volume:/var/lib/postgresql/data/
- environment:
- - POSTGRES_USER=django_user
- - POSTGRES_PASSWORD=django_password
- - POSTGRES_DB=django_db
- networks:
- - union-network
- volumes:
- postgres_volume:
- static:
- media:
- letsencrypt:
- networks:
- union-network:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement