microblog.pub/docker-compose-dev.yml

33 lines
786 B
YAML
Raw Normal View History

version: '3'
2018-05-18 13:41:41 -05:00
services:
2018-09-03 13:21:33 -05:00
flower:
image: microblogpub:latest
links:
- mongo
- rabbitmq
command: 'celery flower -l info -A tasks --broker amqp://guest@rabbitmq// --address=0.0.0.0 --port=5556'
environment:
- MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rabbitmq//
- MICROBLOGPUB_MONGODB_HOST=mongo:27017
ports:
- "5556:5556"
2018-05-18 13:41:41 -05:00
celery:
2018-06-01 13:59:32 -05:00
image: microblogpub:latest
2018-05-18 13:41:41 -05:00
links:
- mongo
- rabbitmq
command: 'celery worker -l info -A tasks'
environment:
- MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rabbitmq//
2018-05-18 13:41:41 -05:00
- MICROBLOGPUB_MONGODB_HOST=mongo:27017
mongo:
image: "mongo:latest"
volumes:
- "./data:/data/db"
ports:
- "27017:27017"
rabbitmq:
image: "rabbitmq:latest"
ports:
- "5672:5672"