-
Notifications
You must be signed in to change notification settings - Fork 5
Use Podman Secret for Storing the Database Password
Georg Steinbuss edited this page Jul 4, 2026
·
1 revision
Podman secrets can be used to store the database password securely instead of exposing it in plain text within the container files. To use them, simply replace the Environment directive containing the database password with the respective Secret directive in immich-database.container:
- Environment=POSTGRES_PASSWORD=${DB_PASSWORD}
+ Secret=immich_db_password,type=env,target=POSTGRES_PASSWORDAnd in immich-server.container:
- Environment=DB_PASSWORD=${DB_PASSWORD}
+ Secret=immich_db_password,type=env,target=DB_PASSWORDThe secret can be created securely in the terminal using the following command:
systemd-ask-password -n "Enter Immich DB Password:" | podman secret create immich_db_password -Here are some resources for Podman secrets that you might find useful: