Doing some testing to make sure that Cloudflare works with the app

This commit is contained in:
2025-08-21 22:24:50 -04:00
parent e2651456da
commit 82eed71d7e
5 changed files with 187 additions and 4 deletions

26
docker-compose.test.yml Normal file
View File

@@ -0,0 +1,26 @@
version: "3.9"
services:
shard-test:
build: .
container_name: greencoast-shard-test
restart: unless-stopped
user: "0:0"
# You can keep these published for local debugging; Tunnel doesn't require them.
ports:
- "9080:9080" # API
- "9082:9082" # Frontend
environment:
- GC_DEV_ALLOW_UNAUTH=false
volumes:
- ./testdata:/var/lib/greencoast
- ./configs/shard.test.yaml:/app/shard.yaml:ro
- ./client:/app/client:ro
cloudflared:
image: cloudflare/cloudflared:latest
# Use the token you copy from Cloudflare Zero Trust → Tunnels
command: tunnel --no-autoupdate run --token ${CF_TUNNEL_TOKEN}
restart: unless-stopped
depends_on:
- shard-test