update database
This commit is contained in:
parent
f73ba7f1a2
commit
78381d2e14
2 changed files with 4 additions and 3 deletions
|
@ -189,6 +189,7 @@
|
||||||
name: mastodon_postgresql_1
|
name: mastodon_postgresql_1
|
||||||
state: started
|
state: started
|
||||||
|
|
||||||
|
# CREATE USER mastodon CREATEDB;
|
||||||
- name: Set up database
|
- 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"
|
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:
|
args:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# postgresql configuration
|
# postgresql configuration
|
||||||
POSTGRES_USER=mastodon
|
POSTGRES_USER={{ mastodon_db_user }}
|
||||||
POSTGRES_DB=mastodon_production
|
POSTGRES_DB={{ mastodon_db }}
|
||||||
POSTGRES_PASSWORD=O6lOD6nF2LbhhJs1e7QL
|
POSTGRES_PASSWORD={{ mastodon_db_password }}
|
||||||
|
|
||||||
# pgbouncer configuration
|
# pgbouncer configuration
|
||||||
#POOL_MODE=transaction
|
#POOL_MODE=transaction
|
||||||
|
|
Loading…
Reference in a new issue