Add .env file for docker-compose

This commit is contained in:
riggraz
2019-09-23 12:14:35 +02:00
parent 3ce611374b
commit 10f73d876e
13 changed files with 84 additions and 12 deletions

View File

@@ -15,5 +15,9 @@ module App
# Application configuration can go into files in config/initializers
# -- all .rb files in that directory are automatically loaded after loading
# the framework and any gems in your application.
def name
ENV["APP_NAME"]
end
end
end

View File

@@ -19,8 +19,8 @@ default: &default
encoding: unicode
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
host: db
username: postgres
password:
username: <%= ENV['POSTGRES_USER'] %>
password: <%= ENV['POSTGRES_PASSWORD'] %>
development:
<<: *default
@@ -82,5 +82,3 @@ test:
production:
<<: *default
database: app_production
username: app
password: <%= ENV['APP_DATABASE_PASSWORD'] %>