This is a slim server to handle a simple api application.
Before, run
mix deps.get
Create a process, and after access http://localhost:4000
.
{:ok, pid} = Plug.Cowboy.http SlimServer.SimpleCall, %{}
Or, you can run this server with:
mix run --no-halt
First create the image
docker build -t alexandreservian/elixir:laster .
After create container
docker container run -d -v $(pwd):/usr/src/workspace -p 8080:8080 alexandreservian/elixir:laster
First create the image
docker-compose build
After create container
docker-compose up -d
After access your localhost at port 8008 like http://localhost:8080/