diff --git a/templates/photoprism/docker-compose.yml.j2 b/templates/photoprism/docker-compose.yml.j2 index b12d5e6..c327445 100644 --- a/templates/photoprism/docker-compose.yml.j2 +++ b/templates/photoprism/docker-compose.yml.j2 @@ -55,7 +55,8 @@ services: - apparmor:unconfined ports: - "{{ photoprism.site.port }}:2342" # HTTP port (host:container) - environment: + env_file: + - "{{ grafana_setup_path | expanduser | realpath }}/photoprism.yml" working_dir: "/photoprism" # do not change or remove ## Storage Folders: "~" is a shortcut for your home directory, "." for the current directory @@ -80,6 +81,8 @@ services: ## https://docs.photoprism.app/getting-started/troubleshooting/#fatal-server-errors restart: unless-stopped image: mariadb:10.10 + env_file: + - "{{ grafana_setup_path | expanduser | realpath }}/db.yml" security_opt: # see https://github.com/MariaDB/mariadb-docker/issues/434#issuecomment-1136151239 - seccomp:unconfined - apparmor:unconfined