diff --git a/docker-swarm/stack.yaml b/docker-swarm/stack.yaml index 11d5f5c62..703b07605 100644 --- a/docker-swarm/stack.yaml +++ b/docker-swarm/stack.yaml @@ -103,6 +103,8 @@ services: hostname: postgres-1 environment: ETCD_HOSTS: etcd1:2379,etcd2:2379,etcd3:2379 + PGPASSWORD_SUPERUSER: "postgres" + PGUSER_SUPERUSER: "postgres" SCOPE: infisical volumes: - postgres_data1:/home/postgres/pgdata @@ -119,6 +121,8 @@ services: hostname: postgres-2 environment: ETCD_HOSTS: etcd1:2379,etcd2:2379,etcd3:2379 + PGPASSWORD_SUPERUSER: "postgres" + PGUSER_SUPERUSER: "postgres" SCOPE: infisical volumes: - postgres_data2:/home/postgres/pgdata @@ -135,6 +139,8 @@ services: hostname: postgres-3 environment: ETCD_HOSTS: etcd1:2379,etcd2:2379,etcd3:2379 + PGPASSWORD_SUPERUSER: "postgres" + PGUSER_SUPERUSER: "postgres" SCOPE: infisical volumes: - postgres_data3:/home/postgres/pgdata @@ -256,4 +262,4 @@ configs: secrets: env_file: - file: .env \ No newline at end of file + file: .env