Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,14 @@ USER nobody:nobody

COPY --from=build --chown=nobody:nobody /app/_build/prod/rel/app ./

ENV HOME=/app
ENV MIX_ENV=prod
ENV SECRET_KEY_BASE=nokey
ENV PORT=4000
# set runner ENV
ENV MIX_ENV="prod"

# Only copy the final release from the build stage
COPY --from=build --chown=nobody:root /app/_build/${MIX_ENV}/rel/app ./

CMD ["/app/bin/server"]

CMD ["bin/app", "start"]
# Appended by flyctl
ENV ECTO_IPV6 true
ENV ERL_AFLAGS "-proto_dist inet6_tcp"
8 changes: 4 additions & 4 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ processes = []
auto_rollback = true

[[services]]
http_checks = []
# http_checks = []
internal_port = 8080
processes = ["app"]
protocol = "tcp"
script_checks = []
# script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
Expand All @@ -34,7 +34,7 @@ processes = []
port = 443

[[services.tcp_checks]]
grace_period = "1s"
grace_period = "3s"
interval = "15s"
restart_limit = 0
restart_limit = 6
timeout = "2s"