update database

This commit is contained in:
Antonio J. Delgado 2022-11-19 23:25:33 +02:00
parent f73ba7f1a2
commit 78381d2e14
2 changed files with 4 additions and 3 deletions

View file

@ -189,6 +189,7 @@
name: mastodon_postgresql_1
state: started
# CREATE USER mastodon CREATEDB;
- name: Set up database
shell: "docker-compose -f '{{ mastodon_composer_folder }}/docker-compose.yml' run --rm shell bundle exec rake db:setup && echo 'Database ready' > /var/lib/mastodon_db_setup"
args:

View file

@ -1,7 +1,7 @@
# postgresql configuration
POSTGRES_USER=mastodon
POSTGRES_DB=mastodon_production
POSTGRES_PASSWORD=O6lOD6nF2LbhhJs1e7QL
POSTGRES_USER={{ mastodon_db_user }}
POSTGRES_DB={{ mastodon_db }}
POSTGRES_PASSWORD={{ mastodon_db_password }}
# pgbouncer configuration
#POOL_MODE=transaction