Elixir (Plug + Bandit) app template — z3k platform
Find a file Use this template
Arthur Zinck b8b905b360
Some checks failed
build-image / build (push) Failing after 2s
ci: preview build on pull requests
2026-07-27 11:51:39 +00:00
.forgejo/workflows ci: preview build on pull requests 2026-07-27 11:51:39 +00:00
lib feat: elixir template — lib/app/router.ex 2026-07-26 21:05:06 +00:00
.dockerignore feat: elixir template — .dockerignore 2026-07-26 21:05:07 +00:00
Dockerfile feat: platform base images (z3k-images) 2026-07-27 07:13:45 +00:00
mix.exs feat: elixir template — mix.exs 2026-07-26 21:05:04 +00:00
README.md feat: elixir template — README.md 2026-07-26 21:05:08 +00:00

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 at GET /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.lock is committed; dependencies resolve at image build from the pins in mix.exs.

Phoenix works the same way — mix release + its own Dockerfile.