forked from DreamLab-AI/origin-logseq-AR
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathdocker-compose.cloudflared.yml
More file actions
33 lines (32 loc) · 1.25 KB
/
Copy pathdocker-compose.cloudflared.yml
File metadata and controls
33 lines (32 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Standalone remotely-managed Cloudflare tunnel for VisionClaw.
#
# Token-based tunnel: configure the ingress mapping
# (junkiejarvis.com -> http://visionclaw-server:3001)
# is configured as a "Public Hostname" in the Cloudflare Zero Trust dashboard, so no
# local config.yml is needed here. The cloudflared container joins visionclaw_network
# and reaches the VisionClaw dev/prod container by its network alias `visionclaw-server`
# on nginx port 3001.
#
# Usage:
# 1) put your tunnel token in .env: CLOUDFLARE_TUNNEL_TOKEN=eyJ...
# 2) docker compose -f docker-compose.cloudflared.yml up -d
# 3) docker compose -f docker-compose.cloudflared.yml logs -f # expect "Registered tunnel connection"
services:
cloudflared:
image: cloudflare/cloudflared:latest@sha256:6b599ca3e974349ead3286d178da61d291961182ec3fe9c505e1dd02c8ac31b0
container_name: cloudflared-visionclaw
restart: unless-stopped
command: tunnel --no-autoupdate run
environment:
- TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN:?set CLOUDFLARE_TUNNEL_TOKEN in .env first}
networks:
- visionclaw_network
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
visionclaw_network:
external: true
name: visionclaw_network