diff --git a/config/runtime.exs b/config/runtime.exs
index 1f4150e..c90ffb9 100644
--- a/config/runtime.exs
+++ b/config/runtime.exs
@@ -106,7 +106,7 @@ if config_env() == :prod do
# Set it to {0, 0, 0, 0, 0, 0, 0, 1} for local network only access.
# See the documentation on https://hexdocs.pm/plug_cowboy/Plug.Cowboy.html
# for details about using IPv6 vs IPv4 and loopback vs public addresses.
- ip: {0, 0, 0, 0, 0, 0, 0, 0},
+ ip: {0, 0, 0, 0},
port: String.to_integer(System.get_env("PORT") || "4000")
],
secret_key_base: secret_key_base
diff --git a/lib/pinchflat_web/components/layouts/partials/sidebar.html.heex b/lib/pinchflat_web/components/layouts/partials/sidebar.html.heex
index 1ac1d8d..fc34749 100644
--- a/lib/pinchflat_web/components/layouts/partials/sidebar.html.heex
+++ b/lib/pinchflat_web/components/layouts/partials/sidebar.html.heex
@@ -57,6 +57,11 @@
<.icon name="hero-currency-dollar" /> Donate
+
+
+ v<%= Application.spec(:pinchflat)[:vsn] %>
+
+
diff --git a/mix.exs b/mix.exs
index 8efa762..68bf4ad 100644
--- a/mix.exs
+++ b/mix.exs
@@ -4,7 +4,7 @@ defmodule Pinchflat.MixProject do
def project do
[
app: :pinchflat,
- version: "0.1.2",
+ version: "0.1.3",
elixir: "~> 1.16",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
diff --git a/selfhosted.Dockerfile b/selfhosted.Dockerfile
index 5f7f128..d861cd0 100644
--- a/selfhosted.Dockerfile
+++ b/selfhosted.Dockerfile
@@ -75,6 +75,8 @@ RUN mix release
# the compiled release and other runtime necessities
FROM ${RUNNER_IMAGE}
+ARG PORT=8945
+
RUN apt-get update -y
RUN apt-get install -y libstdc++6 openssl libncurses5 locales ca-certificates \
ffmpeg curl git openssh-client nano
@@ -101,8 +103,9 @@ RUN chown nobody /config /downloads
# set runner ENV
ENV MIX_ENV="prod"
-ENV PORT=8945
+ENV PORT=${PORT}
ENV RUN_CONTEXT="selfhosted"
+EXPOSE ${PORT}
# Only copy the final release from the build stage
COPY --from=builder --chown=nobody:root /app/_build/${MIX_ENV}/rel/pinchflat ./