2
0
Fork 0
shiftregister/docker-compose.yml

60 lines
1.0 KiB
YAML

---
services:
broker:
image: rabbitmq:3-alpine
restart: unless-stopped
networks:
- dev
ports:
- 127.0.0.1:5672:5672
result-backend:
image: redis:6-alpine
restart: unless-stopped
networks:
- dev
ports:
- 127.0.0.1:6379:6379
server:
build:
context: .
dockerfile: Dockerfile-dev
image: shiftregister:dev
restart: unless-stopped
command:
- python
- manage.py
- runserver
- 0.0.0.0:8000
environment: &celery
CELERY_BROKER_URL: amqp://guest:guest@broker:5672//
CELERY_RESULT_BACKEND: redis://result-backend
networks:
- dev
ports:
- 127.0.0.1:8000:8000
volumes:
- .:/opt/shiftregister
worker:
image: shiftregister:dev
restart: unless-stopped
command:
- celery
- -A
- shiftregister
- worker
- -B
- -l
- DEBUG
environment: *celery
networks:
- dev
volumes:
- .:/opt/shiftregister
networks:
dev: