mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 21:24:28 +00:00
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
version: '2'
|
|
services:
|
|
web:
|
|
image: 'microblogpub:latest'
|
|
ports:
|
|
- "${WEB_PORT}:5005"
|
|
links:
|
|
- mongo
|
|
- rmq
|
|
- poussetaches
|
|
volumes:
|
|
- "${CONFIG_DIR}:/app/config"
|
|
- "./static:/app/static"
|
|
environment:
|
|
- MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rmq//
|
|
- MICROBLOGPUB_MONGODB_HOST=mongo:27017
|
|
- POUSSETACHES_AUTH_KEY=${POUSSETACHES_AUTH_KEY}
|
|
- COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME}
|
|
celery:
|
|
image: 'microblogpub:latest'
|
|
links:
|
|
- mongo
|
|
- rmq
|
|
command: 'celery worker -l info -A tasks'
|
|
volumes:
|
|
- "${CONFIG_DIR}:/app/config"
|
|
environment:
|
|
- MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rmq//
|
|
- MICROBLOGPUB_MONGODB_HOST=mongo:27017
|
|
mongo:
|
|
image: "mongo:latest"
|
|
volumes:
|
|
- "${DATA_DIR}/mongodb:/data/db"
|
|
rmq:
|
|
image: "rabbitmq:latest"
|
|
hostname: "my-rabbit"
|
|
environment:
|
|
- RABBITMQ_ERLANG_COOKIE=secretrabbit
|
|
- RABBITMQ_NODENAME=rabbit@my-rabbit
|
|
volumes:
|
|
- "${DATA_DIR}/rabbitmq:/var/lib/rabbitmq"
|
|
poussetaches:
|
|
image: "poussetaches:latest"
|
|
volumes:
|
|
- "${DATA_DIR}/poussetaches:/app/poussetaches_data"
|
|
environment:
|
|
- POUSSETACHES_AUTH_KEY=${POUSSETACHES_AUTH_KEY}
|