ahayzen / nix-config

1 stars 0 forks source link

Modernise wagtail images #59

Open ahayzen opened 4 months ago

ahayzen commented 4 months ago
ahayzen commented 2 months ago

Static files can be reached via a named volume for an existing directory

eg

caddy:
  volumes:
    - static-data:/srv/site/static_data:ro

wagtail:
  volumes:
    - static-data:/mysite/static:ro

This would allow for /srv/site/static_data of caddy to be reading /mysite/static of wagtail.

https://www.digitalocean.com/community/tutorials/how-to-share-data-between-docker-containers#step-3-creating-a-volume-from-an-existing-directory-with-data