diff --git a/Dockerfile b/Dockerfile index e0f7035..e9150da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,9 +64,9 @@ RUN apt-get update -y && \ # Set the locale RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen -ENV LANG en_US.UTF-8 -ENV LANGUAGE en_US:en -ENV LC_ALL en_US.UTF-8 +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US:en +ENV LC_ALL=en_US.UTF-8 WORKDIR /app @@ -79,7 +79,7 @@ COPY --from=builder --chown=nobody:root /build/app/_build/${MIX_ENV}/rel/firehos USER nobody # Dokku uses the EXPOSE port for routing -EXPOSE 4000 +EXPOSE 5000 ENV PHX_SERVER=true diff --git a/app/config/runtime.exs b/app/config/runtime.exs index d48bf27..f0f4e40 100644 --- a/app/config/runtime.exs +++ b/app/config/runtime.exs @@ -51,7 +51,7 @@ if config_env() == :prod do """ host = System.get_env("PHX_HOST") || "example.com" - port = String.to_integer(System.get_env("PORT") || "4000") + port = String.to_integer(System.get_env("PORT") || "5000") config :firehose, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY") diff --git a/dokku-setup.sh.sample b/dokku-setup.sh.sample index 13019eb..ed49e76 100644 --- a/dokku-setup.sh.sample +++ b/dokku-setup.sh.sample @@ -28,7 +28,7 @@ echo "==> Setting environment variables" dokku config:set --no-restart "$APP" \ SECRET_KEY_BASE="$SECRET_KEY_BASE" \ PHX_HOST="$PHX_HOST" \ - PORT="4000" + PORT="5000" echo "" echo "==> Setup complete!"