mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-24 17:10:31 +00:00
b0790f3356
it still doesn't load but we're getting closer
53 lines
1.1 KiB
YAML
53 lines
1.1 KiB
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
|
|
redis:
|
|
image: redis
|
|
env_file: .env
|
|
ports:
|
|
- "6379:6379"
|
|
networks:
|
|
- main
|
|
restart: on-failure
|
|
celery_worker:
|
|
env_file: .env
|
|
build: .
|
|
networks:
|
|
- main
|
|
command: celery -A fr_celery worker -l info
|
|
volumes:
|
|
- .:/app
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
restart: on-failure
|
|
flower:
|
|
image: mher/flower
|
|
command: ["flower", "--broker=redis://redis:6379/0", "--port=5555"]
|
|
env_file: .env
|
|
ports:
|
|
- "5555:5555"
|
|
restart: on-failure
|
|
volumes:
|
|
pgdata:
|
|
networks:
|
|
main:
|