fix env for postgresql

This commit is contained in:
Antonio J. Delgado 2023-07-09 17:19:59 +03:00
parent 11f80744cd
commit 0adeb60f47
2 changed files with 2 additions and 2 deletions

View file

@ -11,8 +11,7 @@ services:
test: ['CMD', 'pg_isready', '-U', 'postgres'] test: ['CMD', 'pg_isready', '-U', 'postgres']
volumes: volumes:
- ./postgres14:/var/lib/postgresql/data - ./postgres14:/var/lib/postgresql/data
environment: env_file: .env.production
- 'POSTGRES_HOST_AUTH_METHOD=trust'
tor: tor:
image: sirboops/tor image: sirboops/tor

View file

@ -49,6 +49,7 @@ VAPID_PUBLIC_KEY=
POSTGRES_USER={{ mastodon_db_user }} POSTGRES_USER={{ mastodon_db_user }}
POSTGRES_DB={{ mastodon_db }}_{{ mastodon_environment }} POSTGRES_DB={{ mastodon_db }}_{{ mastodon_environment }}
POSTGRES_PASSWORD={{ mastodon_db_password }} POSTGRES_PASSWORD={{ mastodon_db_password }}
# POSTGRES_HOST_AUTH_METHOD=trust
# pgbouncer configuration # pgbouncer configuration
#POOL_MODE=transaction #POOL_MODE=transaction