Skip to content

Commit 2535cc4

Browse files
committed
fix: increase yarn install network timeout in ci/cd && compose config in docs
1 parent 7e1798b commit 2535cc4

5 files changed

Lines changed: 20 additions & 5 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ WORKDIR /app/dashboard
55

66
# Install dependencies first for better caching
77
COPY dashboard/package.json dashboard/yarn.lock ./
8-
RUN yarn install --frozen-lockfile
8+
RUN yarn install --frozen-lockfile --network-timeout 600000
99

1010
# Build frontend assets
1111
COPY dashboard/ .

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ services:
3939
image: ghcr.io/channinghe/labelgate:v0
4040
container_name: labelgate
4141
restart: unless-stopped
42+
# use command "stat -c '%g' /var/run/docker.sock" to get the group id of the docker socket
43+
group_add:
44+
- "REPLACE_WITH_GROUP_ID"
4245
volumes:
4346
- /var/run/docker.sock:/var/run/docker.sock:ro
4447
- ./labelgate-data:/app/config
@@ -48,6 +51,9 @@ services:
4851
- LABELGATE_CLOUDFLARE_TUNNEL_ID
4952
ports:
5053
- "28111:8080"
54+
# labelgate no need to connect to the network "cloudflared-network"
55+
# Because Labelgate simply uses the Cloudflare API to create tunnel ingress rules or DNS records.
56+
network_mode: bridge
5157

5258
cloudflared:
5359
image: cloudflare/cloudflared:latest
@@ -68,6 +74,10 @@ services:
6874
networks:
6975
- cloudflared-network
7076

77+
# Create a network for the services you want to connect to cloudflared.
78+
# This allows your Cloudflare tunnel to connect to services via their container_name within the "cloudflared-network" bridge, eliminating the need for port mapping.
79+
# Consolidating all public services into a single network ensures they remain isolated from private services.
80+
7181
networks:
7282
cloudflared-network:
7383
```
@@ -84,9 +94,8 @@ That's it. Labelgate watches your containers and syncs labels to Cloudflare auto
8494
- [x] **Tunnel Ingress** — Expose services through Cloudflare Tunnels without port forwarding
8595
- [x] **Zero Trust Access** — Configure Cloudflare Access policies declaratively
8696
- [x] **Multi-host Agents** — Manage containers across multiple Docker hosts
87-
- [x] **Web Dashboard** — Built-in UI for monitoring and management
88-
- [x] **Real-time Sync** — Watches Docker events for instant reconciliation
89-
- [x] **Orphan Cleanup** — Automatically removes stale records when containers stop
97+
- [x] **Web Dashboard** — Built-in UI for monitoring
98+
- [x] **Secure & Lightweight** — Rootless, distroless Docker images by default, with sizes typically under 10 MiB
9099

91100

92101

docsite/content/docs/en/getting-started.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ services:
5757
labelgate:
5858
image: labelgate:latest
5959
restart: unless-stopped
60+
# use command "stat -c '%g' /var/run/docker.sock" to get the group id of the docker socket
61+
group_add:
62+
- "REPLACE_WITH_GROUP_ID"
6063
volumes:
6164
- /var/run/docker.sock:/var/run/docker.sock:ro
6265
- ./labelgate-data:/app/config

docsite/content/docs/zh/getting-started.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ services:
5757
labelgate:
5858
image: labelgate:latest
5959
restart: unless-stopped
60+
# use command "stat -c '%g' /var/run/docker.sock" to get the group id of the docker socket
61+
group_add:
62+
- "REPLACE_WITH_GROUP_ID"
6063
volumes:
6164
- /var/run/docker.sock:/var/run/docker.sock:ro
6265
- labelgate-data:/app/config

full.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ WORKDIR /app/dashboard
55

66
# Install dependencies first for better caching
77
COPY dashboard/package.json dashboard/yarn.lock ./
8-
RUN yarn install --frozen-lockfile
8+
RUN yarn install --frozen-lockfile --network-timeout 600000
99

1010
# Build frontend assets
1111
COPY dashboard/ .

0 commit comments

Comments
 (0)