From 1ad02023c2fa3d3079642813ea8c300c14eccbd9 Mon Sep 17 00:00:00 2001 From: "Troll (Hermes Agent)" Date: Fri, 31 Jul 2026 20:50:14 +0000 Subject: [PATCH] Remove env_file from docker-compose; use Portainer environment variables directly --- README.md | 15 +++++++-------- docker-compose.yml | 13 ++++++++++++- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ba69369..4876636 100644 --- a/README.md +++ b/README.md @@ -34,14 +34,13 @@ The repo includes a `docker-compose.yml` that builds directly from GitLab, so Po - URL: `https://gitlab.hallsworth.ca/yrtria/theme-song-booth.git` - Branch: `main` - Compose path: `docker-compose.yml` -4. Add environment variables in Portainer (or upload a `.env` file): - - `APP_SECRET_KEY` - - `ADMIN_PASSWORD` - - `SMTP_PASS` - - `PUBLIC_BASE_URL` (your HTTPS domain) - - `INTERNAL_PORT` (default `8000`) — port the container listens on - - `HOST_PORT` (default `127.0.0.1:8000`) — host-side mapping to avoid conflicts with other containers - - `BOOTH_NAME` (optional) +4. Add environment variables directly in Portainer under **Environment variables**: + - `APP_SECRET_KEY` — long random string + - `ADMIN_PASSWORD` — password for `/admin` + - `SMTP_PASS` — `b3ZzD@eM!MkqVS8P` + - `PUBLIC_BASE_URL` — your HTTPS domain + - `HOST_PORT` — default `127.0.0.1:8000` + - `BOOTH_NAME` — optional 5. Deploy the stack. 6. Open a console into the `booth` container and run once: ```bash diff --git a/docker-compose.yml b/docker-compose.yml index 8a7cb60..8f438a5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,18 @@ services: context: https://gitlab.hallsworth.ca/yrtria/theme-song-booth.git#main container_name: theme-song-booth restart: unless-stopped - env_file: .env + environment: + - APP_SECRET_KEY=${APP_SECRET_KEY} + - ADMIN_PASSWORD=${ADMIN_PASSWORD} + - SMTP_HOST=${SMTP_HOST:-mailroot8.namespro.ca} + - SMTP_PORT=${SMTP_PORT:-465} + - SMTP_USER=${SMTP_USER:-ai@hallsworth.ca} + - SMTP_PASS=${SMTP_PASS} + - SMTP_FROM=${SMTP_FROM:-ai@hallsworth.ca} + - ADMIN_ALERT_EMAIL=${ADMIN_ALERT_EMAIL:-} + - PUBLIC_BASE_URL=${PUBLIC_BASE_URL} + - BOOTH_NAME=${BOOTH_NAME:-Trollgorithm Theme Songs} + - INTERNAL_PORT=${INTERNAL_PORT:-8000} ports: - "${HOST_PORT:-127.0.0.1:8000}:${INTERNAL_PORT:-8000}" volumes: