25 lines
1.1 KiB
YAML
25 lines
1.1 KiB
YAML
|
---
|
||
|
services_deploy_pod:
|
||
|
wants:
|
||
|
- "postgres"
|
||
|
containers:
|
||
|
postgres:
|
||
|
image: "docker.io/library/postgres:{{ services_service_deploy_versions.postgres }}"
|
||
|
wants:
|
||
|
- "pgadmin"
|
||
|
podman_run_args:
|
||
|
- "-v ./.config/service/database.password:/run/secrets/database.password:ro"
|
||
|
- "-e POSTGRES_PASSWORD_FILE=/run/secrets/database.password"
|
||
|
- "-v {{ services_data_directory }}/pod-database/wal/_data:/var/lib/postgresql-wal"
|
||
|
- "-e POSTGRES_INITDB_WALDIR=/var/lib/postgresql-wal"
|
||
|
- "-v {{ services_data_directory }}/pod-database/data/_data:/var/lib/postgresql/data"
|
||
|
pgadmin:
|
||
|
image: "docker.io/dpage/pgadmin4:{{ services_service_deploy_versions.pgadmin4 }}"
|
||
|
binds_to:
|
||
|
- "postgres"
|
||
|
podman_run_args:
|
||
|
- "-v {{ services_data_directory }}/pod-database/pgadmin/_data:/var/lib/pgadmin:U"
|
||
|
- "-v ./.config/service/pgadmin.password:/run/secrets/pgadmin.password:U,ro"
|
||
|
- "-e PGADMIN_DEFAULT_EMAIL=\"{{ services[services_service_name].pgadmin.email }}\""
|
||
|
- "-e PGADMIN_DEFAULT_PASSWORD_FILE=/run/secrets/pgadmin.password"
|