mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 02:51:13 +00:00
Add exports_volume to docker-compose.yml
Exports should be written to a Docker volume instead of to the bind mount (= source directory). This way they are shared between different containers even when they run on different machines.
This commit is contained in:
parent
a770689245
commit
073f62d5bb
2 changed files with 4 additions and 0 deletions
|
@ -29,6 +29,7 @@ services:
|
||||||
- .:/app
|
- .:/app
|
||||||
- static_volume:/app/static
|
- static_volume:/app/static
|
||||||
- media_volume:/app/images
|
- media_volume:/app/images
|
||||||
|
- exports_volume:/app/exports
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
- celery_worker
|
- celery_worker
|
||||||
|
@ -67,6 +68,7 @@ services:
|
||||||
- .:/app
|
- .:/app
|
||||||
- static_volume:/app/static
|
- static_volume:/app/static
|
||||||
- media_volume:/app/images
|
- media_volume:/app/images
|
||||||
|
- exports_volume:/app/exports
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
- redis_broker
|
- redis_broker
|
||||||
|
@ -81,6 +83,7 @@ services:
|
||||||
- .:/app
|
- .:/app
|
||||||
- static_volume:/app/static
|
- static_volume:/app/static
|
||||||
- media_volume:/app/images
|
- media_volume:/app/images
|
||||||
|
- exports_volume:/app/exports
|
||||||
depends_on:
|
depends_on:
|
||||||
- celery_worker
|
- celery_worker
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
|
@ -109,6 +112,7 @@ volumes:
|
||||||
pgdata:
|
pgdata:
|
||||||
static_volume:
|
static_volume:
|
||||||
media_volume:
|
media_volume:
|
||||||
|
exports_volume:
|
||||||
redis_broker_data:
|
redis_broker_data:
|
||||||
redis_activity_data:
|
redis_activity_data:
|
||||||
networks:
|
networks:
|
||||||
|
|
0
exports/.gitkeep
Normal file
0
exports/.gitkeep
Normal file
Loading…
Reference in a new issue