From f6e3a68647f6d4053ff75b14fca34bdb6b108d42 Mon Sep 17 00:00:00 2001 From: Viren070 Date: Sat, 5 Apr 2025 02:13:21 +0100 Subject: [PATCH] feat: add dockge --- apps/compose.yaml | 1 + apps/dockge/.env | 9 +++++++++ apps/dockge/compose.yaml | 31 +++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 apps/dockge/.env create mode 100644 apps/dockge/compose.yaml diff --git a/apps/compose.yaml b/apps/compose.yaml index 5641169..5fec547 100644 --- a/apps/compose.yaml +++ b/apps/compose.yaml @@ -10,6 +10,7 @@ include: - byparr/compose.yaml - comet/compose.yaml - dash/compose.yaml + - dockge/compose.yaml - dozzle/compose.yaml - flame/compose.yaml - gluetun/compose.yaml diff --git a/apps/dockge/.env b/apps/dockge/.env new file mode 100644 index 0000000..95e42e4 --- /dev/null +++ b/apps/dockge/.env @@ -0,0 +1,9 @@ +# Dockge is a management interface for Docker compose applications. +# +# Note that with the way this template is setup, dockge will not work for running compose files. +# It detects the individual compose files and tries to run them as a separate compose project +# But our compose.yaml file is a single compose project that includes all the other compose files. +# Dockge does not detect this single compose project and tries to run each of the included compose files as a separate project. +# +# You should only use dockge for editing the compose.yaml files and the terminal. +DOCKGE_HOSTNAME= \ No newline at end of file diff --git a/apps/dockge/compose.yaml b/apps/dockge/compose.yaml new file mode 100644 index 0000000..a4b5e7f --- /dev/null +++ b/apps/dockge/compose.yaml @@ -0,0 +1,31 @@ +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" + - "flame.type=app" + - "flame.name=DockGE" + - "flame.url=https://${DOCKGE_HOSTNAME?}" + 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