Moving to Traefik
This commit is contained in:
@@ -36,7 +36,7 @@ services:
|
||||
# configured as it otherwise may get stuck in a restart loop:
|
||||
# https://docs.photoprism.org/getting-started/faq/#why-is-photoprism-getting-stuck-in-a-restart-loop
|
||||
restart: unless-stopped
|
||||
container_name: photoprism_server
|
||||
container_name: photoprism
|
||||
security_opt:
|
||||
- seccomp:unconfined
|
||||
- apparmor:unconfined
|
||||
@@ -84,9 +84,15 @@ services:
|
||||
# - "~/Import:/photoprism/import"
|
||||
# Permanent storage for settings, index & sidecar files (DON'T REMOVE):
|
||||
- "./storage:/photoprism/storage"
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.photoprism.entrypoints=websecure"
|
||||
- "traefik.http.routers.photoprism.rule=Host(`photos.pukeko.xyz`)"
|
||||
- "traefik.http.routers.photoprism.service=photoprism-photoprism@docker"
|
||||
- "traefik.http.routers.photoprism.tls.certresolver=pukekoresolver"
|
||||
- "traefik.http.routers.photoprism.middlewares=authelia@docker"
|
||||
networks:
|
||||
- network
|
||||
- internal
|
||||
|
||||
mariadb:
|
||||
container_name: photoprism_db
|
||||
@@ -104,9 +110,7 @@ services:
|
||||
MYSQL_USER: photoprism
|
||||
MYSQL_PASSWORD: insecure
|
||||
networks:
|
||||
- internal
|
||||
- network
|
||||
networks:
|
||||
network:
|
||||
driver: bridge
|
||||
internal:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user