# Do things here that you only want to apply to your docker environment # if ENV['DOCKER'].to_s =~ /true/ # # Modify workarea configuration # Workarea.configure do |config| config.headless_chrome_options << 'no-sandbox' end # # Modify application configuration # Rails.application.configure do <%= 'config.file_watcher = ActiveSupport::FileUpdateChecker' unless include_docker_sync? %> # Uncomment if you want to use mailcatcher # config.action_mailer.delivery_method = :smtp # config.action_mailer.smtp_settings = { :address => 'mailcatcher', :port => 1025 } # Allow web console in Docker if Rails.env.development? config.web_console.whitelisted_ips = Socket.ip_address_list.reduce([]) do |res, addrinfo| addrinfo.ipv4? ? res << IPAddr.new(addrinfo.ip_address).mask(24) : res end WebConsole::Request.whitelisted_ips = WebConsole::Whitelist.new(config.web_console.whitelisted_ips) end end end