bookwyrm/docker-compose.yml

116 lines
2.6 KiB
YAML
Raw Normal View History

2020-03-22 18:21:19 +00:00
version: '3'
services:
2021-03-04 18:44:12 +00:00
nginx:
2023-09-08 01:30:29 +00:00
image: nginx:1.25.2
restart: unless-stopped
2021-03-04 18:44:12 +00:00
ports:
- "1333:80"
2021-03-04 18:44:12 +00:00
depends_on:
- web
networks:
- main
volumes:
- ./nginx:/etc/nginx/conf.d
2021-03-04 18:44:12 +00:00
- static_volume:/app/static
- media_volume:/app/images
db:
image: postgres:13
2021-03-04 18:44:12 +00:00
env_file: .env
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- main
web:
build: .
env_file: .env
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/app
2021-03-04 18:44:12 +00:00
- static_volume:/app/static
- media_volume:/app/images
depends_on:
- db
- celery_worker
2021-03-22 17:44:42 +00:00
- redis_activity
2021-03-04 18:44:12 +00:00
networks:
- main
ports:
- "8000"
2021-03-22 17:44:42 +00:00
redis_activity:
2023-09-08 01:30:29 +00:00
image: redis:7.2.1
2022-01-05 16:27:39 +00:00
command: redis-server --requirepass ${REDIS_ACTIVITY_PASSWORD} --appendonly yes --port ${REDIS_ACTIVITY_PORT}
volumes:
- ./redis.conf:/etc/redis/redis.conf
- redis_activity_data:/data
2021-03-22 17:44:42 +00:00
env_file: .env
networks:
- main
restart: on-failure
redis_broker:
2023-09-08 01:30:29 +00:00
image: redis:7.2.1
2022-01-05 16:27:39 +00:00
command: redis-server --requirepass ${REDIS_BROKER_PASSWORD} --appendonly yes --port ${REDIS_BROKER_PORT}
2022-02-05 02:34:17 +00:00
volumes:
- ./redis.conf:/etc/redis/redis.conf
2022-02-05 02:34:17 +00:00
- redis_broker_data:/data
2021-03-04 18:44:12 +00:00
env_file: .env
networks:
- main
restart: on-failure
celery_worker:
env_file: .env
build: .
networks:
- main
command: celery -A celerywyrm worker -l info -Q high_priority,medium_priority,low_priority,streams,images,suggested_users,email,connectors,lists,inbox,imports,import_triggered,broadcast,misc
2021-03-04 18:44:12 +00:00
volumes:
- .:/app
2021-03-04 18:44:12 +00:00
- static_volume:/app/static
- media_volume:/app/images
depends_on:
- db
2021-03-22 17:44:42 +00:00
- redis_broker
2021-03-04 18:44:12 +00:00
restart: on-failure
2022-02-26 16:44:19 +00:00
celery_beat:
env_file: .env
build: .
networks:
- main
command: celery -A celerywyrm beat -l INFO --scheduler django_celery_beat.schedulers:DatabaseScheduler
volumes:
- .:/app
2022-02-26 16:44:19 +00:00
- static_volume:/app/static
- media_volume:/app/images
depends_on:
- celery_worker
restart: on-failure
2021-03-04 18:44:12 +00:00
flower:
build: .
command: celery -A celerywyrm flower --basic_auth=${FLOWER_USER}:${FLOWER_PASSWORD} --url_prefix=flower
2021-03-04 18:44:12 +00:00
env_file: .env
volumes:
- .:/app
- static_volume:/app/static
2021-03-04 18:44:12 +00:00
networks:
- main
depends_on:
- db
2021-03-22 17:44:42 +00:00
- redis_broker
2021-03-04 18:44:12 +00:00
restart: on-failure
2022-02-12 22:06:18 +00:00
dev-tools:
2022-02-15 20:25:35 +00:00
build: dev-tools
2022-02-12 22:06:18 +00:00
env_file: .env
volumes:
- /app/dev-tools/
- .:/app
profiles:
- tools
2020-03-22 18:21:19 +00:00
volumes:
2021-03-04 18:44:12 +00:00
pgdata:
static_volume:
media_volume:
2021-04-15 21:55:08 +00:00
redis_broker_data:
redis_activity_data:
2020-03-22 21:33:26 +00:00
networks:
2021-03-04 18:44:12 +00:00
main: