-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathselur-compose.toml
More file actions
41 lines (38 loc) · 1.48 KB
/
selur-compose.toml
File metadata and controls
41 lines (38 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# SPDX-License-Identifier: PMPL-1.0-or-later
# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
#
# http-capability-gateway — Stapeln/Selur service definition.
#
# HTTP capability-based gateway built with Elixir/Phoenix. Multi-stage
# build: hexpm/elixir Alpine builder + Alpine runtime. Exposes HTTP
# gateway on port 4000.
#
# Usage:
# podman-compose -f selur-compose.toml up -d
# just stack-up
#
# Required secrets (set via environment or .env file):
# SECRET_KEY_BASE — Phoenix secret key (mix phx.gen.secret)
[project]
name = "http-capability-gateway"
# =============================================================================
# HTTP Capability Gateway — Phoenix application
# =============================================================================
[services.app]
build = { context = ".", dockerfile = "Containerfile" }
restart = "unless-stopped"
ports = ["4000:4000"]
networks = ["gateway-internal"]
environment = [
"MIX_ENV=prod",
"PHX_HOST=localhost",
"PORT=4000",
]
# Secrets — inject at deploy time via environment or .env file:
# SECRET_KEY_BASE=<mix phx.gen.secret>
healthcheck = { test = "wget --no-verbose --tries=1 --spider http://localhost:4000/health || exit 1", interval = "30s", timeout = "5s", retries = 3 }
# =============================================================================
# Networks
# =============================================================================
[networks.gateway-internal]
driver = "bridge"