mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
30 lines
649 B
YAML
30 lines
649 B
YAML
version: '3'
|
|
services:
|
|
web:
|
|
build: .
|
|
ports:
|
|
- "5005:5005"
|
|
links:
|
|
- mongo
|
|
- rabbitmq
|
|
volumes:
|
|
- "./config:/app/config"
|
|
- "./static:/app/static"
|
|
environment:
|
|
- MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rabbitmq//
|
|
- MICROBLOGPUB_MONGODB_HOST=mongo:27017
|
|
celery:
|
|
build: .
|
|
links:
|
|
- mongo
|
|
- rabbitmq
|
|
command: 'celery worker -l info -A tasks'
|
|
environment:
|
|
- MICROBLOGPUB_AMQP_BROKER=pyamqp://guest@rabbitmq//
|
|
- MICROBLOGPUB_MONGODB_HOST=mongo:27017
|
|
mongo:
|
|
image: "mongo:latest"
|
|
volumes:
|
|
- "./data:/data/db"
|
|
rabbitmq:
|
|
image: "rabbitmq:latest"
|