diff --git a/config/runtime.exs b/config/runtime.exs index 3e85f6c..cdebf7e 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -30,17 +30,18 @@ if config_env() == :prod do For example: ecto://USER:PASS@HOST/DATABASE """ - config :workload_service, WorkloadService.EventStore, + config :customer_service, CustomerService.EventStore, serializer: Commanded.Serialization.JsonSerializer, url: database_url, schema: "eventstore", - pool_size: String.to_integer(System.get_env("EVENT_STORE_POOL_SIZE") || "10") + pool_size: String.to_integer(System.get_env("EVENTSTORE_POOL_SIZE") || "1") maybe_ipv6 = if System.get_env("ECTO_IPV6") in ~w(true 1), do: [:inet6], else: [] config :customer_service, CustomerService.Repo, url: database_url, pool_size: 1, + pool_size: String.to_integer(System.get_env("DATABASE_POOL_SIZE") || "1"), socket_options: maybe_ipv6 secret_key_base =