Skip to content

Commit 501b57f

Browse files
committed
Update database.yml
1 parent 9c346e3 commit 501b57f

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

config/database.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
1-
<%= ENV['RAILS_ENV'] %>:
1+
# This configuration is tailored for use with docker compose. See DOCKER.md for more information.
2+
3+
development:
4+
adapter: postgresql
5+
host: <%= ENV['WS_OSM_DB_HOST'] %>
6+
username: <%= ENV['WS_OSM_DB_USER'] %>
7+
password: <%= ENV['WS_OSM_DB_PASS'] %>
8+
database: <%= ENV['WS_OSM_DB_NAME'] %>
9+
encoding: utf8
10+
11+
# Warning: The database defined as 'test' will be erased and
12+
# re-generated from your development database when you run 'rake'.
13+
# Do not set this db to the same as development or production.
14+
test:
15+
adapter: postgresql
16+
host: <%= ENV['WS_OSM_DB_HOST'] %>
17+
username: <%= ENV['WS_OSM_DB_USER'] %>
18+
password: <%= ENV['WS_OSM_DB_PASS'] %>
19+
database: osm_test
20+
encoding: utf8
21+
22+
production:
223
adapter: postgresql
324
host: <%= ENV['WS_OSM_DB_HOST'] %>
425
username: <%= ENV['WS_OSM_DB_USER'] %>

0 commit comments

Comments
 (0)