Remove env_file from docker-compose; use Portainer environment variables directly
This commit is contained in:
parent
3ef8aaf45a
commit
1ad02023c2
2 changed files with 19 additions and 9 deletions
15
README.md
15
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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Reference in a new issue