add redis host for docker env, fixes #3

This commit is contained in:
byte[] 2019-12-08 18:34:18 -05:00
parent 3c84bae2fc
commit 402c2eae90
3 changed files with 4 additions and 2 deletions

View file

@ -10,6 +10,7 @@ import Config
config :philomena,
ecto_repos: [Philomena.Repo],
elasticsearch_url: "http://localhost:9200",
redis_host: "localhost",
password_pepper: "dn2e0EpZrvBLoxUM3gfQveBhjf0bG/6/bYhrOyq3L3hV9hdo/bimJ+irbDWsuXLP",
otp_secret_key: "Wn7O/8DD+qxL0X4X7bvT90wOkVGcA90bIHww4twR03Ci//zq7PnMw8ypqyyT/b/C",
tumblr_api_key: "fuiKNFp9vQFvjLNvx4sUwti4Yb5yGutBN4Xh10LXZhhRKjWlV4",

View file

@ -10,7 +10,8 @@ config :philomena, Philomena.Repo,
pool_size: 10
config :philomena,
elasticsearch_url: "http://elasticsearch:9200"
elasticsearch_url: "http://elasticsearch:9200",
redis_host: "redis"
# For development, we disable any cache and enable
# debugging and code reloading.

View file

@ -16,7 +16,7 @@ defmodule Philomena.Application do
# {Philomena.Worker, arg},
Philomena.Servers.ImageProcessor,
Pow.Store.Backend.MnesiaCache,
{Redix, name: :redix}
{Redix, name: :redix, host: Application.get_env(:philomena, :redis_host)}
]
# See https://hexdocs.pm/elixir/Supervisor.html