Elixir (Plug + Bandit) app template — z3k platform
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| lib | ||
| .dockerignore | ||
| Dockerfile | ||
| mix.exs | ||
| README.md | ||
Elixir template
Minimal Elixir app — Plug.Router served by Bandit, packaged as a mix release
and built into a container image on every push to main.
- Listens on
PORT(default 4000); health check atGET /health. - Environment variables (e.g.
APP_NAME) come from the console Configuration tab. - Push to deploy: the workflow builds the image and the platform rolls it out.
- No
mix.lockis committed; dependencies resolve at image build from the pins inmix.exs.
Phoenix works the same way — mix release + its own Dockerfile.