mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 11:31:08 +00:00
46 lines
930 B
YAML
46 lines
930 B
YAML
version: '3'
|
|
|
|
services:
|
|
db:
|
|
image: postgres
|
|
env_file: .env
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
networks:
|
|
- main
|
|
web:
|
|
build: .
|
|
command: python manage.py runserver 0.0.0.0:8000
|
|
volumes:
|
|
- .:/app
|
|
ports:
|
|
- "8000:8000"
|
|
depends_on:
|
|
- db
|
|
- celery_worker
|
|
networks:
|
|
- main
|
|
rabbitmq:
|
|
env_file: .env
|
|
image: rabbitmq:latest
|
|
networks:
|
|
- main
|
|
ports:
|
|
- "5672:5672"
|
|
restart: on-failure
|
|
celery_worker:
|
|
env_file: .env
|
|
build: .
|
|
networks:
|
|
- main
|
|
command: celery -A fedireads worker -l info
|
|
volumes:
|
|
- .:/app
|
|
depends_on:
|
|
- db
|
|
- rabbitmq
|
|
restart: on-failure
|
|
volumes:
|
|
pgdata:
|
|
networks:
|
|
main:
|