From 87a6436f28b0063be8c6f54e2c817dc16487cb8a Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Mon, 13 Nov 2023 23:32:37 +0800 Subject: [PATCH] Update compose.yaml --- compose.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/compose.yaml b/compose.yaml index a40e736..af58910 100644 --- a/compose.yaml +++ b/compose.yaml @@ -7,14 +7,16 @@ services: # Host Port : Container Port - 5001:5001 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 - # Docker Socket - - /var/run/docker.sock:/var/run/docker.sock - # Dockge Config - - ./data:/app/data # Your stacks directory in the host (The paths inside container must be the same as the host) + # ⚠️⚠️ If you did it wrong, your data could end up be written into a wrong path. + # ✔️✔️✔️✔️ CORRECT: - /my-stacks:/my-stacks (Both paths match) + # ❌❌❌❌ WRONG: - /docker:/my-stacks (Both paths do not match) - /opt/stacks:/opt/stacks environment: # Tell Dockge where is your stacks directory