From f27c4bebc9755a1e99ce88df6846268773048524 Mon Sep 17 00:00:00 2001 From: Laur Ivan Date: Fri, 20 Jan 2023 19:18:13 +0100 Subject: [PATCH] fix: Add environment files. --- templates/photoprism/docker-compose.yml.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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