cb_parser/Docker/docker-compose.yml
2019-05-01 18:38:02 +03:00

35 lines
654 B
YAML

version: '2'
services:
nginx:
image: nginx:latest
container_name: ng02
ports:
- "80:8000"
volumes:
- static-files:/src/static
- ./config:/etc/nginx/conf.d
depends_on:
- web
redis:
image: redis
container_name: rd02
ports:
- "6379:6379"
web:
build:
context: ../
dockerfile: Docker/Dockerfile
container_name: dg02
volumes:
- static-files:/usr/src/app/static
expose:
- "8000"
depends_on:
- redis
# command: bash -c "python3 manage.py collectstatic && gunicorn deplodock.wsgi --bind 0.0.0.0:8000"
volumes:
static-files: