fix: Add environment files.

This commit is contained in:
Laur Ivan 2023-01-20 19:18:13 +01:00
parent 9a9fde015c
commit f27c4bebc9

View File

@ -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