S
version: "3.7"
x-labelman: &labelman-common
build:
context: '../'
dockerfile: './Labelman/Dockerfile-debug'
environment:
prometheus_multiproc_dir: /tmp/prometheus_tmp
DEVELOPMENT_MODE: "True"
image: "labelman:dev"
volumes:
- .:/opt/labelman/Labelman
services:
labelman:
<<: *labelman-common
command: gunicorn -c gunicorn_conf.py -b 0.0.0.0:8000 wsgi --reload --log-level INFO -t 60
depends_on:
- cache
expose:
- 8000
devtools:
<<: *labelman-common
command: sleep infinity
cache:
image: redis:alpine
nginx-labelman:
image: nginx:alpine
ports:
- "6002:8000"
volumes:
- ./docker_development/nginx_site:/etc/nginx/conf.d/zakaz.conf
- ./static:/opt/labelman/Labelman/static
depends_on:
- labelman
worker:
<<: *labelman-common
command: celery -A labelman_tools worker -l INFO