2023-11-11 21:54:08 +01:00
|
|
|
---
|
|
|
|
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"
|
2024-06-02 17:30:50 +02:00
|
|
|
- "-v {{ services_data_directory }}/pod-database/wal-16/_data:/var/lib/postgresql-wal"
|
2023-11-11 21:54:08 +01:00
|
|
|
- "-e POSTGRES_INITDB_WALDIR=/var/lib/postgresql-wal"
|
2024-06-02 17:30:50 +02:00
|
|
|
- "-v {{ services_data_directory }}/pod-database/data-16/_data:/var/lib/postgresql/data"
|
2023-11-11 21:54:08 +01:00
|
|
|
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"
|