Files
docker-compose-cookbooks/shlink_dev/compose.yaml
T
codeandClaude Fable 5 8ab413804a normalize all stacks to conventions
- VOL_PATH always defaults to /data; vscode/opencode VOL_PROJECTS nests it
- TZ defaults to America/Vancouver (was UTC in etherpad, ntfy, redis)
- compose section order fixed (volumes before environment, command after networks)
- all default secrets are the literal ChangeThisPassword (grep-friendly,
  users must change them); removed a real key from ollama sample.env
- sample.env synced with compose: missing vars added with defaults, dead vars removed
- invoiceninja_dev/openarchiver_dev: app services had no environment block,
  wired all sample.env vars through so the stacks actually work
- opencode: sample.env OLLAMA_HOST renamed to OLLAMA_HOST_URL to match compose
- TZ values unquoted consistently

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-16 06:24:54 +00:00

51 lines
1.5 KiB
YAML

services:
mariadb:
image: ${MARIADB_IMAGE:-mariadb:10.11}
restart: ${SHLINK_RESTART:-unless-stopped}
volumes:
- ${VOL_PATH:-/data}/shlink/db:/var/lib/mysql
environment:
- MARIADB_DATABASE=${SHLINK_DB_NAME:-shlink}
- MARIADB_USER=${SHLINK_DB_USER:-shlink}
- MARIADB_PASSWORD=${SHLINK_DB_PASSWORD:-ChangeThisPassword}
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD:-ChangeThisPassword}
networks:
- internal
shlink:
image: ${SHLINK_IMAGE:-shlinkio/shlink:latest}
restart: ${SHLINK_RESTART:-unless-stopped}
environment:
- TZ=${TZ:-America/Vancouver}
- DEFAULT_DOMAIN=${SHLINK_DOMAIN:-localhost}
- IS_HTTPS_ENABLED=${SHLINK_HTTPS:-false}
- DB_DRIVER=maria
- DB_HOST=mariadb
- DB_NAME=${SHLINK_DB_NAME:-shlink}
- DB_USER=${SHLINK_DB_USER:-shlink}
- DB_PASSWORD=${SHLINK_DB_PASSWORD:-ChangeThisPassword}
- DEFAULT_BASE_URL_REDIRECT=${SHLINK_REDIRECT_URL:-https://localhost}
ports:
- "${SHLINK_PORT:-8080}:8080"
networks:
- proxy
- internal
depends_on:
- mariadb
shlink-web-client:
image: ${SHLINK_WEB_CLIENT_IMAGE:-shlinkio/shlink-web-client:latest}
restart: ${SHLINK_RESTART:-unless-stopped}
volumes:
- ${VOL_PATH:-/data}/shlink/web-client:/usr/share/nginx/html
ports:
- "${SHLINK_WEB_CLIENT_PORT:-8003}:80"
networks:
- proxy
- internal
networks:
proxy:
external: true
internal: