this post was submitted on 12 Aug 2025
3 points (100.0% liked)
Docker
1369 readers
1 users here now
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Hâve you made a persistent volume for
/etc/nginx(or any of its subdirectories) ?IIRC, the templates are interpolated/copied on container start if the resulting configs do not exist already. Having a persistent volume would cause the issue you're experiencing
Thanks. I did create a persistent volume, but I thought that deleting the files would trigger them to be recreated when the container restarts.