Make internal and host ports configurable via env vars

This commit is contained in:
Troll (Hermes Agent) 2026-07-31 20:43:36 +00:00
parent fa01ac0f32
commit 3ef8aaf45a
5 changed files with 12 additions and 6 deletions

View file

@ -1,15 +1,12 @@
services:
booth:
# Option A: use a pre-built image (push this from CI or build locally and tag)
# image: registry.gitlab.hallsworth.ca/yrtria/theme-song-booth:latest
# Option B: build directly from the GitLab repo in Portainer
build:
context: https://gitlab.hallsworth.ca/yrtria/theme-song-booth.git#main
container_name: theme-song-booth
restart: unless-stopped
env_file: .env
ports:
- "127.0.0.1:8000:8000"
- "${HOST_PORT:-127.0.0.1:8000}:${INTERNAL_PORT:-8000}"
volumes:
- booth-data:/app/data
- booth-uploads:/app/uploads