bdd181425b
Docker Compose project with automated Playwright benchmarks comparing django-liveview 2.2.0 against Phoenix LiveView 1.0 across 6 scenarios.
23 lines
704 B
Elixir
23 lines
704 B
Elixir
import Config
|
|
|
|
database_url =
|
|
System.get_env("DATABASE_URL") ||
|
|
"postgresql://benchmark:benchmark@postgres-phoenix/phoenix_benchmark"
|
|
|
|
secret_key_base =
|
|
System.get_env("SECRET_KEY_BASE") ||
|
|
"dev_secret_key_base_at_least_64_chars_long_for_phoenix_liveview_ok!"
|
|
|
|
host = System.get_env("PHX_HOST") || "localhost"
|
|
port = String.to_integer(System.get_env("PORT") || "4000")
|
|
|
|
config :benchmark, BenchmarkWeb.Endpoint,
|
|
http: [ip: {0, 0, 0, 0}, port: port],
|
|
secret_key_base: secret_key_base,
|
|
url: [host: host, port: 443, scheme: "https"],
|
|
check_origin: false
|
|
|
|
config :benchmark, Benchmark.Repo,
|
|
url: database_url,
|
|
pool_size: max(String.to_integer(System.get_env("POOL_SIZE") || "10"), 2)
|