2018-05-27 20:47:33 +00:00
|
|
|
version: '2'
|
2018-05-18 18:41:41 +00:00
|
|
|
services:
|
|
|
|
web:
|
|
|
|
build: .
|
|
|
|
ports:
|
2018-05-21 09:53:58 +00:00
|
|
|
- "${WEB_PORT}:5005"
|
2018-05-18 18:41:41 +00:00
|
|
|
links:
|
|
|
|
- mongo
|
2018-05-21 11:00:17 +00:00
|
|
|
- rmq
|
2018-05-18 18:41:41 +00:00
|
|
|
volumes:
|
2018-05-21 09:53:58 +00:00
|
|
|
- "${CONFIG_DIR}:/app/config"
|
2018-05-18 18:41:41 +00:00
|
|
|
- "./static:/app/static"
|
|
|
|
environment:
|
2018-05-21 11:00:17 +00:00
|
|
|
- MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rmq//
|
2018-05-18 18:41:41 +00:00
|
|
|
- MICROBLOGPUB_MONGODB_HOST=mongo:27017
|
|
|
|
celery:
|
|
|
|
build: .
|
|
|
|
links:
|
|
|
|
- mongo
|
2018-05-21 11:00:17 +00:00
|
|
|
- rmq
|
2018-05-18 18:41:41 +00:00
|
|
|
command: 'celery worker -l info -A tasks'
|
|
|
|
environment:
|
2018-05-21 11:00:17 +00:00
|
|
|
- MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rmq//
|
2018-05-18 18:41:41 +00:00
|
|
|
- MICROBLOGPUB_MONGODB_HOST=mongo:27017
|
|
|
|
mongo:
|
|
|
|
image: "mongo:latest"
|
|
|
|
volumes:
|
2018-05-21 11:00:17 +00:00
|
|
|
- "${DATA_DIR}/mongodb:/data/db"
|
|
|
|
rmq:
|
2018-05-18 18:41:41 +00:00
|
|
|
image: "rabbitmq:latest"
|
2018-05-21 11:00:17 +00:00
|
|
|
hostname: "my-rabbit"
|
|
|
|
environment:
|
|
|
|
- RABBITMQ_ERLANG_COOKIE=secretrabbit
|
|
|
|
- RABBITMQ_NODENAME=rabbit@my-rabbit
|
|
|
|
volumes:
|
|
|
|
- "${DATA_DIR}/rabbitmq:/var/lib/rabbitmq"
|