You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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: