Skip to content

Commit 0991758

Browse files
committed
chore: fix compose.yaml in release workflow
1 parent 00adfa5 commit 0991758

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,16 +155,22 @@ jobs:
155155
services:
156156
labelgate:
157157
image: ghcr.io/channinghe/labelgate:VERSION_PLACEHOLDER
158+
container_name: labelgate
158159
restart: unless-stopped
160+
# use command "stat -c '%g' /var/run/docker.sock" to get the group id of the docker socket
161+
group_add:
162+
- "REPLACE_WITH_GROUP_ID"
159163
volumes:
160164
- /var/run/docker.sock:/var/run/docker.sock:ro
165+
# Run the command "sudo chown -R 65532:65532 ./labelgate-data" to ensure the mount path has the correct ownership.
161166
- ./labelgate-data:/app/config
162167
environment:
163168
- LABELGATE_CLOUDFLARE_API_TOKEN
164169
- LABELGATE_CLOUDFLARE_ACCOUNT_ID
165170
- LABELGATE_CLOUDFLARE_TUNNEL_ID
166171
ports:
167172
- "28111:8080"
173+
network_mode: bridge
168174
```
169175
COMPOSE
170176

0 commit comments

Comments
 (0)