Compose stack manager UI example.
Educational example only. Review every volume path, port, and credential before you run this. Do not copy production secrets into your wiki or git repo.
_shared/.env for non-secrets, _shared/.secret for credentialsmkdir -p /path/to/docker/stacks/dockge
cd /path/to/docker/stacks/dockge
# paste compose.yaml below, then:
docker compose pull
docker compose up -d
services:
dockge:
image: louislam/dockge:1
container_name: dockge
restart: unless-stopped
hostname: dockge
env_file:
- /path/to/docker/stacks/_shared/.env
- /path/to/docker/stacks/_shared/.secret
environment:
- DOCKGE_STACKS_DIR=/path/to/docker/stacks
logging:
driver: json-file
options:
max-file: ${DOCKERLOGGING_MAXFILE:-10} # Max number of log files
max-size: ${DOCKERLOGGING_MAXSIZE:-200k} # Max file size
ports:
- 5001:5001
volumes:
# Docker socket access for orchestration
- /var/run/docker.sock:/var/run/docker.sock
# Dockge internal state database
- /path/to/docker/data/dockge:/app/data
# Stacks directory (MUST map 1:1 to host path)
- /path/to/docker/stacks:/path/to/docker/stacks