A bare `- VAR` in `environment:` passes through Portainer's (empty) shell env and overrides the env_file value with nothing. BookStack's APP_KEY and DB_PASS, mariadb's MYSQL_* passwords, TZ, and minio_resume's OIDC client id/secret were all arriving empty; BookStack only worked via its persisted /config/www/.env. env_file already supplies every one of these, and the stack.env values were verified to match the live ones before removal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
104 lines
3.0 KiB
YAML
104 lines
3.0 KiB
YAML
# dev stack — developer tooling: code-server, DBX, BookStack.
|
|
# (Gitea, gitea-runner, postgres_gitea, registry, and registry-ui moved to the
|
|
# management plane in portainer-compose.yml. Plane was removed 2026-10-26.)
|
|
#
|
|
# Volume -> bind-mount conversions:
|
|
# dbx data -> /config/dbx (SSD)
|
|
|
|
services:
|
|
# ============================================================ CODE-SERVER
|
|
code-server:
|
|
container_name: code_server
|
|
image: lscr.io/linuxserver/code-server:latest
|
|
restart: unless-stopped
|
|
networks: [dev, edge]
|
|
env_file:
|
|
- stack.env
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- DEFAULT_WORKSPACE=/workspace
|
|
# Authentik forward_auth at the edge — local password auth disabled via config mount.
|
|
volumes:
|
|
- /config/code-server:/config
|
|
- /config/code-server/code-server.yaml:/config/.config/code-server/config.yaml
|
|
- /home/ginnoir/projects:/workspace
|
|
- /home/ginnoir/.claude:/home/abc/.claude
|
|
- /home/ginnoir/.codex:/home/abc/.codex
|
|
ports:
|
|
- "8443:8443"
|
|
|
|
# ============================================================ DBX
|
|
dbx:
|
|
container_name: dbx
|
|
image: t8y2/dbx:latest
|
|
restart: unless-stopped
|
|
networks: [dev, edge]
|
|
volumes:
|
|
- /config/dbx:/app/data
|
|
ports:
|
|
- "4224:4224"
|
|
|
|
# ============================================================ BOOKSTACK
|
|
bookstack:
|
|
container_name: bookstack
|
|
image: lscr.io/linuxserver/bookstack:latest
|
|
restart: unless-stopped
|
|
networks: [dev, edge]
|
|
env_file:
|
|
- stack.env
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- APP_URL=https://docs.ginnoir.com
|
|
# Laravel prioritizes DATABASE_URL over DB_*; pin it to BookStack's own MariaDB
|
|
# so a stray DATABASE_URL in stack.env can never redirect it.
|
|
- DATABASE_URL=mysql://bookstack:bookstack_d3v_pass@mariadb_bookstack:3306/bookstack
|
|
- DB_HOST=mariadb_bookstack
|
|
- DB_PORT=3306
|
|
- DB_USER=bookstack
|
|
- DB_DATABASE=bookstack
|
|
- AUTH_METHOD=oidc
|
|
- AUTH_AUTO_INITIATE=false
|
|
- OIDC_NAME=Authentik
|
|
- OIDC_ISSUER=https://auth.ginnoir.com/application/o/bookstack/
|
|
- OIDC_ISSUER_DISCOVER=true
|
|
- OIDC_END_SESSION_ENDPOINT=true
|
|
volumes:
|
|
- /config/bookstack:/config
|
|
ports:
|
|
- "6875:80"
|
|
depends_on:
|
|
mariadb_bookstack:
|
|
condition: service_healthy
|
|
|
|
mariadb_bookstack:
|
|
container_name: mariadb_bookstack
|
|
image: lscr.io/linuxserver/mariadb:11.4.8
|
|
restart: unless-stopped
|
|
labels:
|
|
- "com.centurylabs.watchtower.enable=false"
|
|
networks: [dev]
|
|
env_file:
|
|
- stack.env
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- MYSQL_DATABASE=bookstack
|
|
- MYSQL_USER=bookstack
|
|
volumes:
|
|
- /config/bookstack-db:/config
|
|
healthcheck:
|
|
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
networks:
|
|
dev:
|
|
name: dev
|
|
driver: bridge
|
|
edge:
|
|
name: edge
|
|
external: true
|