microblog.pub/docker-compose.yml

31 lines
649 B
YAML
Raw Normal View History

2018-05-18 13:41:41 -05:00
version: '3'
services:
web:
build: .
ports:
- "5005:5005"
links:
- mongo
- rabbitmq
volumes:
- "./config:/app/config"
- "./static:/app/static"
environment:
2018-05-19 01:54:46 -05:00
- MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rabbitmq//
2018-05-18 13:41:41 -05:00
- MICROBLOGPUB_MONGODB_HOST=mongo:27017
celery:
build: .
links:
- mongo
- rabbitmq
command: 'celery worker -l info -A tasks'
environment:
2018-05-19 01:54:46 -05:00
- 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"
rabbitmq:
image: "rabbitmq:latest"