mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 21:10:54 +00:00
75b33e760a
Fix env vars. Rely on inheritance. Add a script to load env vars as above. Fix staging env Add nginx conf and SSL directory Reorganize .gitignore Use multi-staged docker-compose + dockerfile Substitute env vars for static values
27 lines
419 B
YAML
27 lines
419 B
YAML
base: &db
|
|
adapter: mysql2
|
|
encoding: utf8
|
|
host: <%= ENV['MYSQL_HOST'] %>
|
|
database: <%= ENV['MYSQL_DATABASE'] %>
|
|
username: <%= ENV['MYSQL_USER'] %>
|
|
password: <%= ENV['MYSQL_PASSWORD'] %>
|
|
pool: <%= Integer(ENV['MYSQL_CONNECTION_POOL'] || 8) %>
|
|
wait_timeout: 90
|
|
reconnect: true
|
|
|
|
|
|
development:
|
|
<<: *db
|
|
|
|
staging:
|
|
<<: *db
|
|
|
|
test:
|
|
<<: *db
|
|
database: ensl_test
|
|
|
|
staging:
|
|
<<: *db
|
|
|
|
production:
|
|
<<: *db
|