2023-12-17 10:35:24 +08:00
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
|
|
dockge:
|
|
|
|
image: louislam/dockge:1
|
|
|
|
restart: unless-stopped
|
2024-01-26 20:51:17 +08:00
|
|
|
# ports:
|
|
|
|
# - 5001:5001
|
2023-12-17 10:35:24 +08:00
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
- ./data:/app/data
|
2024-01-26 20:51:17 +08:00
|
|
|
|
2023-12-17 10:35:24 +08:00
|
|
|
# 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)
|
2024-01-26 20:51:17 +08:00
|
|
|
- ${DOCKGE_STACKS_DIR:-}:${DOCKGE_STACKS_DIR:-}
|
2023-12-17 10:35:24 +08:00
|
|
|
environment:
|
|
|
|
# Tell Dockge where is your stacks directory
|
2024-01-26 20:51:17 +08:00
|
|
|
- DOCKGE_STACKS_DIR=${DOCKGE_STACKS_DIR:-}
|
|
|
|
networks:
|
|
|
|
- traefik_default
|
2023-12-17 10:35:24 +08:00
|
|
|
|
|
|
|
|
2024-01-26 20:51:17 +08:00
|
|
|
dockge-oauth:
|
|
|
|
image: quay.io/oauth2-proxy/oauth2-proxy:v7.5.1
|
|
|
|
command: --config /oauth2-proxy.cfg
|
|
|
|
hostname: dockge-oauth2-proxy
|
|
|
|
volumes:
|
|
|
|
- "./oauth2-proxy.cfg:/oauth2-proxy.cfg"
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
external_links:
|
2024-02-23 23:14:45 +08:00
|
|
|
- "caddy:git.homeinfra.org"
|
2024-01-26 20:51:17 +08:00
|
|
|
env_file:
|
|
|
|
- .env
|
2023-12-17 10:35:24 +08:00
|
|
|
networks:
|
|
|
|
- traefik_default
|
|
|
|
|
|
|
|
networks:
|
|
|
|
traefik_default:
|
|
|
|
external: true
|