Demo: Remove settings.yml on restart

This commit is contained in:
Michael Mayer 2021-12-12 23:00:32 +01:00
parent c7121bc988
commit 18dc2a813a
2 changed files with 4 additions and 1 deletions

View file

@ -3,7 +3,8 @@ all: restart
restart: restart:
docker-compose pull demo docker-compose pull demo
docker-compose stop demo docker-compose stop demo
docker-compose up -d --force-recreate demo find config -type f -name 'settings.yml' -delete
docker-compose up -d -V --force-recreate demo
install: install:
docker-compose pull docker-compose pull
docker-compose stop docker-compose stop

View file

@ -13,6 +13,8 @@ services:
- "traefik.http.routers.demo.rule=Host(`demo.yourdomain.com`)" - "traefik.http.routers.demo.rule=Host(`demo.yourdomain.com`)"
- "traefik.http.routers.demo.tls=true" - "traefik.http.routers.demo.tls=true"
- "traefik.http.routers.demo.tls.certresolver=myresolver" - "traefik.http.routers.demo.tls.certresolver=myresolver"
volumes:
- "./config:/photoprism/storage/config"
environment: environment:
PHOTOPRISM_SITE_URL: "https://demo.yourdomain.com/" PHOTOPRISM_SITE_URL: "https://demo.yourdomain.com/"
# PHOTOPRISM_CDN_URL: "https://demo-cdn.yourdomain.com/" # PHOTOPRISM_CDN_URL: "https://demo-cdn.yourdomain.com/"