@ -179,8 +179,6 @@ defmodule Explorer.Application do
end
defp redix_opts do
config = Application.get_env(:explorer, Redix)
[name: :redix, host: config[:host], port: config[:port]]
{System.get_env("ACCOUNT_REDIS_URL") || "redis://127.0.0.1:6379", [name: :redix]}
@ -103,17 +103,6 @@ variant =
Code.require_file("#{variant}.exs", "apps/explorer/config/dev")
redis_port =
case System.get_env("ACCOUNT_REDIS_PORT") && Integer.parse(System.get_env("ACCOUNT_REDIS_PORT")) do
{port, _} -> port
:error -> nil
nil -> nil
config :explorer, Redix,
host: System.get_env("ACCOUNT_REDIS_HOST_URL") || "127.0.0.1",
port: redis_port || 6379
###############
### Indexer ###
@ -70,17 +70,6 @@ variant =
Code.require_file("#{variant}.exs", "apps/explorer/config/prod")
host: System.get_env("ACCOUNT_REDIS_HOST_URL"),
port: redis_port
@ -24,17 +24,6 @@ variant =
Code.require_file("#{variant}.exs", "apps/explorer/config/test")
@ -1,6 +1,10 @@
version: '3.8'
services:
redis_db:
image: 'redis:alpine'
command: redis-server
db:
image: postgres:14
restart: always
@ -16,6 +20,7 @@ services:
depends_on:
- db
- smart-contract-verifier
- redis_db
image: blockscout/blockscout:${DOCKER_TAG:-latest}
container_name: 'blockscout'
@ -18,6 +22,7 @@ services:
@ -15,6 +19,7 @@ services:
blockscout:
build:
context: ..
@ -1,11 +1,9 @@
redis:
image: "redis:alpine"
ports:
- 6379:6379
@ -22,6 +20,7 @@ services:
@ -138,5 +138,5 @@ RUST_VERIFICATION_SERVICE_URL=http://host.docker.internal:8043/
# ACCOUNT_SENDGRID_SENDER=
# ACCOUNT_SENDGRID_TEMPLATE=
ACCOUNT_CLOAK_KEY=
ACCOUNT_REDIS_HOST_URL=http://host.docker.internal
ACCOUNT_REDIS_PORT=6379
ACCOUNT_ENABLED=false
ACCOUNT_REDIS_URL=redis://redis_db:6379