Docker: respect PORT env, use 5000 by default
This commit is contained in:
parent
9832ab2573
commit
d0d1457680
2 changed files with 1 additions and 3 deletions
|
@ -53,6 +53,4 @@ COPY --from=build --chown=pleroma:0 /src/release ${HOME}
|
|||
COPY ./config/docker.exs /etc/pleroma/config.exs
|
||||
COPY ./docker-entrypoint.sh ${HOME}
|
||||
|
||||
EXPOSE 4000
|
||||
|
||||
ENTRYPOINT ["/opt/pleroma/docker-entrypoint.sh"]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
config :pleroma, Pleroma.Web.Endpoint,
|
||||
url: [host: System.get_env("DOMAIN", "localhost"), scheme: "https", port: 443],
|
||||
http: [ip: {0, 0, 0, 0}, port: 4000]
|
||||
http: [ip: {0, 0, 0, 0}, port: System.get_env("PORT", "5000")]
|
||||
|
||||
config :pleroma, :instance,
|
||||
name: System.get_env("INSTANCE_NAME", "Pleroma"),
|
||||
|
|
Loading…
Reference in a new issue