Adding env agnostic docker compose file #17

Merged
hitanshu merged 2 commits from hitanshu/CFTunnels:docker_compose into test 2025-05-28 14:31:35 +00:00
2 changed files with 16 additions and 0 deletions

4
.env.example Normal file
View File

@ -0,0 +1,4 @@
CLOUDFLARE_ACCOUNT_ID="<cloudflare account id>"
CLOUDFLARE_API_KEY="<cloudflare account key>"
CLOUDFLARE_EMAIL="<cloudflare email>"
ENV="<deployment env>"

12
docker-compose.yaml Normal file
View File

@ -0,0 +1,12 @@
services:
app:
image: gitea.hithomelabs.com/hithomelabs/cftunnels:${ENV}
container_name: cftunnels_${ENV}
environment:
- CLOUDFLARE_ACCOUNT_ID=${CLOUDFLARE_ACCOUNT_ID}
- CLOUDFLARE_API_KEY=${CLOUDFLARE_API_KEY}
- CLOUDFLARE_EMAIL=${CLOUDFLARE_EMAIL}
- ENV=${ENV}
ports:
- 5002:8080
restart: unless-stopped