2018-05-26 07:50:59 +00:00
|
|
|
version: '3.5'
|
2018-05-21 11:03:44 +00:00
|
|
|
services:
|
|
|
|
web:
|
|
|
|
build: .
|
|
|
|
ports:
|
|
|
|
- "${WEB_PORT}:5005"
|
|
|
|
links:
|
|
|
|
- mongo
|
|
|
|
- rmq
|
|
|
|
volumes:
|
|
|
|
- "${CONFIG_DIR}:/app/config"
|
|
|
|
- "./static:/app/static"
|
|
|
|
environment:
|
|
|
|
- MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rmq//
|
|
|
|
- MICROBLOGPUB_MONGODB_HOST=mongo:27017
|
2018-05-22 22:57:34 +00:00
|
|
|
- MICROBLOGPUB_DEBUG=1
|
2018-05-21 11:03:44 +00:00
|
|
|
celery:
|
2018-05-27 20:47:33 +00:00
|
|
|
# image: "instance1_web"
|
2018-05-21 11:03:44 +00:00
|
|
|
build: .
|
|
|
|
links:
|
|
|
|
- mongo
|
|
|
|
- rmq
|
|
|
|
command: 'celery worker -l info -A tasks'
|
|
|
|
environment:
|
|
|
|
- MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rmq//
|
|
|
|
- MICROBLOGPUB_MONGODB_HOST=mongo:27017
|
|
|
|
mongo:
|
|
|
|
image: "mongo:latest"
|
|
|
|
rmq:
|
|
|
|
image: "rabbitmq:latest"
|
|
|
|
hostname: "my-rabbit"
|
|
|
|
environment:
|
|
|
|
- RABBITMQ_ERLANG_COOKIE=secretrabbit
|
|
|
|
- RABBITMQ_NODENAME=rabbit@my-rabbit
|
2018-05-26 07:50:59 +00:00
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
name: microblogpubfede
|