-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathselur-compose.toml
More file actions
53 lines (49 loc) · 1.77 KB
/
selur-compose.toml
File metadata and controls
53 lines (49 loc) · 1.77 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
42
43
44
45
46
47
48
49
50
51
52
53
# SPDX-License-Identifier: PMPL-1.0-or-later
# Copyright (c) 2026 Jonathan D.A. Jewell (hyperpolymath) <j.d.a.jewell@open.ac.uk>
#
# tma-mark2 — Stapeln/Selur service definition.
#
# eTMA handler — Elixir/Phoenix application for electronic Tutor-Marked
# Assignment processing. Multi-stage build: wolfi-base builder with
# Elixir + Node (asset pipeline) + wolfi-base runtime.
#
# Exposes Phoenix 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 = "tma-mark2"
# =============================================================================
# eTMA Handler — Phoenix application
# =============================================================================
[services.app]
build = { context = ".", dockerfile = "Containerfile" }
restart = "unless-stopped"
ports = ["4000:4000"]
networks = ["tma-internal"]
environment = [
"PORT=4000",
"PHX_HOST=localhost",
"MIX_ENV=prod",
"ETMA_DATA_DIR=/app/data",
]
# Secrets — inject at deploy time via environment or .env file:
# SECRET_KEY_BASE=<mix phx.gen.secret>
volumes = [
"tma-data:/app/data",
]
healthcheck = { test = "wget --no-verbose --tries=1 --spider http://localhost:4000/api/health || exit 1", interval = "30s", timeout = "5s", retries = 3 }
# =============================================================================
# Networks
# =============================================================================
[networks.tma-internal]
driver = "bridge"
# =============================================================================
# Volumes
# =============================================================================
[volumes.tma-data]
driver = "local"