microblog.pub/docker-compose.yml
2018-05-19 08:54:46 +02:00

30 lines
649 B
YAML

version: '3'
services:
web:
build: .
ports:
- "5005:5005"
links:
- mongo
- rabbitmq
volumes:
- "./config:/app/config"
- "./static:/app/static"
environment:
- MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rabbitmq//
- MICROBLOGPUB_MONGODB_HOST=mongo:27017
celery:
build: .
links:
- mongo
- rabbitmq
command: 'celery worker -l info -A tasks'
environment:
- MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rabbitmq//
- MICROBLOGPUB_MONGODB_HOST=mongo:27017
mongo:
image: "mongo:latest"
volumes:
- "./data:/data/db"
rabbitmq:
image: "rabbitmq:latest"