kopia lustrzana https://github.com/jedie/PyInventory
Bugfix media files: save them on a volume
rodzic
07f0eeff44
commit
73d9c1c200
|
@ -11,6 +11,7 @@ services:
|
||||||
- ./caddy/Caddyfile:/etc/caddy/Caddyfile:ro
|
- ./caddy/Caddyfile:/etc/caddy/Caddyfile:ro
|
||||||
- ./volumes/caddy/data/:/data/:rw
|
- ./volumes/caddy/data/:/data/:rw
|
||||||
- ./volumes/caddy/config/:/config/:rw
|
- ./volumes/caddy/config/:/config/:rw
|
||||||
|
# Servce django static files with caddy:
|
||||||
- ./volumes/django/static/:/srv/static/:ro
|
- ./volumes/django/static/:/srv/static/:ro
|
||||||
environment:
|
environment:
|
||||||
- HOSTNAME=${HOSTNAME:-localhost}
|
- HOSTNAME=${HOSTNAME:-localhost}
|
||||||
|
@ -37,7 +38,10 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./django/:/django/:ro
|
- ./django/:/django/:ro
|
||||||
- ./volumes/django/:/django_volumes/:rw
|
- ./volumes/django/:/django_volumes/:rw
|
||||||
|
# static files, served by caddy:
|
||||||
- ./volumes/django/static/:/static/:rw
|
- ./volumes/django/static/:/static/:rw
|
||||||
|
# Use files, served by django:
|
||||||
|
- ./volumes/django/media/:/media/:rw
|
||||||
# e.g.: pip cache must be the same value as $XDG_CACHE_HOME !
|
# e.g.: pip cache must be the same value as $XDG_CACHE_HOME !
|
||||||
- ./volumes/cache/:/var/cache/:rw
|
- ./volumes/cache/:/var/cache/:rw
|
||||||
entrypoint: /django/entrypoint.sh
|
entrypoint: /django/entrypoint.sh
|
||||||
|
|
Ładowanie…
Reference in New Issue