From 3999494bff5e563b3bdb2a0388976979ccc16503 Mon Sep 17 00:00:00 2001 From: Cris Mathew Date: Wed, 28 Feb 2024 22:18:18 +0300 Subject: [PATCH] Add dockge/compose.yml --- dockge/compose.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 dockge/compose.yml diff --git a/dockge/compose.yml b/dockge/compose.yml new file mode 100644 index 0000000..3114eb9 --- /dev/null +++ b/dockge/compose.yml @@ -0,0 +1,35 @@ +version: "3.8" +services: + dockge: + container_name: dockge + image: louislam/dockge:1 + restart: unless-stopped + networks: + - proxy + 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 + labels: + - "traefik.enable=true" + - "traefik.http.routers.dockge-secure.entrypoints=https" + - "traefik.http.routers.dockge-secure.rule=Host(`dockge.example.com`)" + - "traefik.http.routers.dockge-secure.tls=true" + - "traefik.http.routers.dockge-secure.service=dockge" + - "traefik.http.services.dockge.loadbalancer.server.port=5001" + - "traefik.docker.network=proxy" + +networks: + proxy: + external: true