mirror of
https://github.com/Viren070/docker-compose-template.git
synced 2025-12-01 23:17:00 +01:00
28 lines
1019 B
YAML
28 lines
1019 B
YAML
services:
|
|
dockge:
|
|
image: louislam/dockge:1
|
|
container_name: dockge
|
|
restart: unless-stopped
|
|
expose:
|
|
- 5001
|
|
environment:
|
|
# Tell Dockge where to find the stacks
|
|
- DOCKGE_STACKS_DIR=${DOCKER_APP_DIR}
|
|
- DOCKGE_ENABLE_CONSOLE=true
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.dockge.rule=Host(`${DOCKGE_HOSTNAME?}`)"
|
|
- "traefik.http.routers.dockge.entrypoints=websecure"
|
|
- "traefik.http.routers.dockge.tls.certresolver=letsencrypt"
|
|
- "traefik.http.routers.dockge.middlewares=authelia@docker"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ${DOCKER_DATA_DIR}/dockge:/app/data
|
|
# 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)
|
|
- ${DOCKER_APP_DIR}:${DOCKER_APP_DIR}
|
|
profiles:
|
|
- dockge
|
|
- all |