microblog.pub/docker-compose.yml

31 lines
666 B
YAML
Raw Normal View History

2018-05-18 18:41:41 +00:00
version: '3'
services:
web:
build: .
ports:
- "${WEB_PORT}:5005"
2018-05-18 18:41:41 +00:00
links:
- mongo
- rabbitmq
volumes:
- "${CONFIG_DIR}:/app/config"
2018-05-18 18:41:41 +00:00
- "./static:/app/static"
environment:
2018-05-19 06:54:46 +00:00
- MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rabbitmq//
2018-05-18 18:41:41 +00:00
- MICROBLOGPUB_MONGODB_HOST=mongo:27017
celery:
build: .
links:
- mongo
- rabbitmq
command: 'celery worker -l info -A tasks'
environment:
2018-05-19 06:54:46 +00:00
- MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rabbitmq//
2018-05-18 18:41:41 +00:00
- MICROBLOGPUB_MONGODB_HOST=mongo:27017
mongo:
image: "mongo:latest"
volumes:
- "${DATA_DIR}:/data/db"
2018-05-18 18:41:41 +00:00
rabbitmq:
image: "rabbitmq:latest"