separate database.yml configs files for each scenario
This commit is contained in:
28
config/database-docker.yml.example
Normal file
28
config/database-docker.yml.example
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
default: &default
|
||||||
|
adapter: postgresql
|
||||||
|
encoding: unicode
|
||||||
|
#host: localhost
|
||||||
|
host: database #<--the name of the db in the docker-compose
|
||||||
|
pool: 5
|
||||||
|
port: 5432
|
||||||
|
username: postgres
|
||||||
|
password: <%= ENV['POSTGRES_PASSWORD'] %>
|
||||||
|
|
||||||
|
development: &development
|
||||||
|
<<: *default
|
||||||
|
database: consul_development
|
||||||
|
|
||||||
|
# The staging, preproduction and production dbs are only needed
|
||||||
|
# for running rake assets:precompile locally before deploying
|
||||||
|
staging:
|
||||||
|
<<: *development
|
||||||
|
|
||||||
|
preproduction:
|
||||||
|
<<: *development
|
||||||
|
|
||||||
|
production:
|
||||||
|
<<: *development
|
||||||
|
|
||||||
|
test:
|
||||||
|
<<: *default
|
||||||
|
database: consul_test
|
||||||
@@ -1,12 +1,10 @@
|
|||||||
default: &default
|
default: &default
|
||||||
adapter: postgresql
|
adapter: postgresql
|
||||||
encoding: unicode
|
encoding: unicode
|
||||||
#host: localhost
|
host: localhost
|
||||||
host: database #<--the name of the db in the docker-compose
|
|
||||||
pool: 5
|
pool: 5
|
||||||
port: 5432
|
username:
|
||||||
username: postgres
|
password:
|
||||||
password: <%= ENV['POSTGRES_PASSWORD'] %>
|
|
||||||
|
|
||||||
development: &development
|
development: &development
|
||||||
<<: *default
|
<<: *default
|
||||||
|
|||||||
Reference in New Issue
Block a user