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
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ COPY . .
# Compile the application
RUN mix compile

EXPOSE 50051 4369 9000-9010
EXPOSE 50051

# Set the default command
CMD ["sh", "-c", "if [ -n \"$MN_NODE_NAME\" ]; then elixir --name $MN_NODE_NAME --cookie ${MN_COOKIE:-mirrorneuron} --erl \"-kernel inet_dist_listen_min 9000 inet_dist_listen_max 9010\" -S mix run --no-halt; else mix run --no-halt; fi"]
CMD ["sh", "-c", "if [ -n \"$MN_NODE_NAME\" ]; then if [ -z \"$MN_COOKIE\" ] || [ \"$MN_COOKIE\" = \"mirrorneuron\" ]; then echo \"MN_COOKIE must be set to a non-default secret when MN_NODE_NAME enables distributed Erlang\" >&2; exit 1; fi; exec elixir --name \"$MN_NODE_NAME\" --cookie \"$MN_COOKIE\" --erl \"-kernel inet_dist_listen_min 9000 inet_dist_listen_max 9010\" -S mix run --no-halt; else exec mix run --no-halt; fi"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Runtime configuration is read from environment variables in `config/runtime.exs`
| Variable | Default | Description |
|---|---|---|
| `MN_ENV` | `dev` | Runtime environment. Must be `dev`, `test`, or `prod`. |
| `MN_COOKIE` | `mirrorneuron` | Erlang distribution cookie. |
| `MN_COOKIE` | `mirrorneuron` in local development | Erlang distribution cookie. Set a strong, non-default value before enabling distributed Erlang with `MN_NODE_NAME` or running in production. |
| `MN_NODE_NAME` | Not set by config | Erlang node name used by release/cluster scripts. |
| `MN_CLUSTER_NODES` | Empty | Comma-separated Erlang node names for cluster discovery. |
| `MN_RELIABILITY_STRATEGY` | `auto` | Conservative runtime strategy resolver for new jobs. |
Expand Down
Loading