Public | Automated Build

Last pushed: a year ago
Short Description
Short description is empty for this repo.
Full Description

Elixir server docker

Docker configuration for running an Elixir server

Running your Elixir server

docker run --name my-elixir-server \
    -v /path/to/mix/folder:/app \
    -d madnificent/elixir-server

What it does

This will get all dependencies, compile them and run a production-build of your server with mix server.

The commands boild down to:

MIX_ENV=prod mix do deps.get, compile
MIX_ENV=prod mix compile.protocols
MIX_ENV=prod elixir -pa _build/prod/consolidated -S mix server

Optional configuration

You can set the following arguments:

  • IEX_COOKIE sets the default cookie for connecting
  • IEX_NAME sets the name for connecting (@ip will be replaced by the docker's ip address)

The combination of these allows you to connect another erlang node to this one. See

Docker Pull Command