mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
60 lines
1.6 KiB
YAML
60 lines
1.6 KiB
YAML
# SQLite. Versions 3.8.0 and up are supported.
|
|
# gem install sqlite3
|
|
#
|
|
# Ensure the SQLite 3 gem is defined in your Gemfile
|
|
# gem "sqlite3"
|
|
#
|
|
default: &default
|
|
adapter: postgresql
|
|
encoding: unicode
|
|
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
|
timeout: 5000
|
|
|
|
development:
|
|
primary:
|
|
<<: *default
|
|
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
|
url: <%= ENV['DATABASE_URL'] %>
|
|
wakatime:
|
|
url: <%= ENV['WAKATIME_DATABASE_URL'] %>
|
|
replica: true
|
|
sailors_log:
|
|
url: <%= ENV['SAILORS_LOG_DATABASE_URL'] %>
|
|
replica: true
|
|
|
|
# Warning: The database defined as "test" will be erased and
|
|
# re-generated from your development database when you run "rake".
|
|
# Do not set this db to the same as development or production.
|
|
test:
|
|
primary:
|
|
<<: *default
|
|
database: test_db
|
|
username: postgres
|
|
password: postgres
|
|
# url: <%= ENV['TEST_DATABASE_URL'] %>
|
|
wakatime:
|
|
url: <%= ENV['WAKATIME_DATABASE_URL'] %>
|
|
replica: true
|
|
|
|
|
|
# Store production database in the storage/ directory, which by default
|
|
# is mounted as a persistent Docker volume in config/deploy.yml.
|
|
production:
|
|
primary:
|
|
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
|
url: <%= ENV['DATABASE_URL'] %>
|
|
wakatime:
|
|
url: <%= ENV['WAKATIME_DATABASE_URL'] %>
|
|
replica: true
|
|
sailors_log:
|
|
url: <%= ENV['SAILORS_LOG_DATABASE_URL'] %>
|
|
replica: true
|
|
cache:
|
|
<<: *default
|
|
database: storage/production_cache.sqlite3
|
|
migrations_paths: db/cache_migrate
|
|
cable:
|
|
<<: *default
|
|
database: storage/production_cable.sqlite3
|
|
migrations_paths: db/cable_migrate
|