2019-12-02 21:01:24 +01:00
|
|
|
postgresql: &postgresql
|
|
|
|
adapter: postgresql
|
|
|
|
host: "localhost"
|
|
|
|
port: 5432
|
|
|
|
username: "{{ app }}"
|
|
|
|
password: "{{ db_pass }}"
|
|
|
|
encoding: unicode
|
|
|
|
|
2015-02-17 03:39:33 +01:00
|
|
|
mysql: &mysql
|
|
|
|
adapter: mysql2
|
|
|
|
host: "localhost"
|
|
|
|
port: 3306
|
2019-12-02 21:01:24 +01:00
|
|
|
username: "root"
|
|
|
|
password: ""
|
2015-02-17 03:39:33 +01:00
|
|
|
# socket: /tmp/mysql.sock
|
2019-12-02 21:01:24 +01:00
|
|
|
encoding: utf8mb4
|
2017-02-08 21:02:56 +01:00
|
|
|
collation: utf8mb4_bin
|
2015-02-17 03:39:33 +01:00
|
|
|
|
|
|
|
|
2019-12-02 21:01:24 +01:00
|
|
|
# Comment the postgresql line and uncomment the mysql line
|
|
|
|
# if you want to use mysql
|
2015-02-17 03:39:33 +01:00
|
|
|
common: &common
|
|
|
|
# Choose one of the following
|
2019-12-02 21:01:24 +01:00
|
|
|
<<: *postgresql
|
|
|
|
#<<: *mysql
|
2015-02-17 03:39:33 +01:00
|
|
|
|
|
|
|
# Should match environment.sidekiq.concurrency
|
|
|
|
#pool: 25
|
2019-12-02 21:01:24 +01:00
|
|
|
|
2015-02-17 03:39:33 +01:00
|
|
|
##################################################
|
|
|
|
#### CONFIGURE ABOVE #############################
|
|
|
|
##################################################
|
|
|
|
|
|
|
|
# Normally you don't need to touch anything here
|
2019-12-02 21:01:24 +01:00
|
|
|
# ynh note: we actually do :-) how about having different database name for
|
|
|
|
# different instances on the same postgres cluster?
|
2015-02-17 03:39:33 +01:00
|
|
|
|
|
|
|
combined: &combined
|
|
|
|
<<: *common
|
|
|
|
development:
|
|
|
|
<<: *combined
|
|
|
|
database: diaspora_development
|
|
|
|
production:
|
|
|
|
<<: *combined
|
2019-12-02 21:01:24 +01:00
|
|
|
database: {{ app }}
|
2015-02-17 03:39:33 +01:00
|
|
|
test:
|
|
|
|
<<: *combined
|
2019-12-02 21:01:24 +01:00
|
|
|
database: diaspora_test
|
2015-02-17 03:39:33 +01:00
|
|
|
integration1:
|
|
|
|
<<: *combined
|
|
|
|
database: diaspora_integration1
|
|
|
|
integration2:
|
|
|
|
<<: *combined
|
|
|
|
database: diaspora_integration2
|