microblog.pub/docker-compose.yml

48 lines
1.2 KiB
YAML
Raw Normal View History

2018-05-27 15:47:33 -05:00
version: '2'
2018-05-18 13:41:41 -05:00
services:
web:
2018-06-01 13:29:44 -05:00
image: 'microblogpub:latest'
2018-05-18 13:41:41 -05:00
ports:
- "${WEB_PORT}:5005"
2018-05-18 13:41:41 -05:00
links:
- mongo
2018-05-21 06:00:17 -05:00
- rmq
2019-04-05 04:35:48 -05:00
- poussetaches
2018-05-18 13:41:41 -05:00
volumes:
- "${CONFIG_DIR}:/app/config"
2018-05-18 13:41:41 -05:00
- "./static:/app/static"
environment:
2018-05-21 06:00:17 -05:00
- MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rmq//
2018-05-18 13:41:41 -05:00
- MICROBLOGPUB_MONGODB_HOST=mongo:27017
2019-04-05 14:36:56 -05:00
- POUSSETACHES_AUTH_KEY=${POUSSETACHES_AUTH_KEY}
2019-04-05 15:41:25 -05:00
- COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME}
2018-05-18 13:41:41 -05:00
celery:
2018-06-01 13:29:44 -05:00
image: 'microblogpub:latest'
2018-05-18 13:41:41 -05:00
links:
- mongo
2018-05-21 06:00:17 -05:00
- rmq
2018-05-18 13:41:41 -05:00
command: 'celery worker -l info -A tasks'
2018-05-28 12:46:23 -05:00
volumes:
- "${CONFIG_DIR}:/app/config"
2018-05-28 12:48:30 -05:00
environment:
2018-05-21 06:00:17 -05:00
- MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rmq//
2018-05-18 13:41:41 -05:00
- MICROBLOGPUB_MONGODB_HOST=mongo:27017
mongo:
image: "mongo:latest"
volumes:
2018-05-21 06:00:17 -05:00
- "${DATA_DIR}/mongodb:/data/db"
rmq:
2018-05-18 13:41:41 -05:00
image: "rabbitmq:latest"
2018-05-21 06:00:17 -05:00
hostname: "my-rabbit"
environment:
- RABBITMQ_ERLANG_COOKIE=secretrabbit
- RABBITMQ_NODENAME=rabbit@my-rabbit
volumes:
- "${DATA_DIR}/rabbitmq:/var/lib/rabbitmq"
2019-04-05 04:35:48 -05:00
poussetaches:
image: "poussetaches:latest"
2019-04-05 14:36:56 -05:00
volumes:
2019-04-05 15:11:32 -05:00
- "${DATA_DIR}/poussetaches:/app/poussetaches_data"
2019-04-05 04:35:48 -05:00
environment:
2019-04-05 14:36:56 -05:00
- POUSSETACHES_AUTH_KEY=${POUSSETACHES_AUTH_KEY}