Files
ansible/roles/docker/templates/dockge-compose.yml.j2
T
PhilandClaude Opus 5.5 14978b6de0 Dockge: bind port 5001 to the Tailscale IP only
It was published on 0.0.0.0 and [::]; ufw-docker blocked it from the
internet, but the other admin UIs already bind to network.docker_host_ip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 11:13:51 -07:00

22 lines
808 B
Django/Jinja

services:
dockge:
image: louislam/dockge:1
restart: unless-stopped
ports:
# Host Port : Container Port
- "{{ network.docker_host_ip }}:5001:5001" # Tailscale only
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/app/data
# If you want to use private registries, you need to share the auth file with Dockge:
# - /root/.docker/:/root/.docker
# Stacks Directory
# ⚠️ READ IT CAREFULLY. If you did it wrong, your data could end up writing into a WRONG PATH.
# ⚠️ 1. FULL path only. No relative path (MUST)
# ⚠️ 2. Left Stacks Path === Right Stacks Path (MUST)
- /opt/stacks:/opt/stacks
environment:
# Tell Dockge where is your stacks directory
- DOCKGE_STACKS_DIR=/opt/stacks