From 4483bf5a1b359c4b104b05fe912cf6f878d78ffd Mon Sep 17 00:00:00 2001 From: hitanshu310 Date: Wed, 28 May 2025 19:15:50 +0530 Subject: [PATCH] Adding env agnostic docker compose file --- .env.example | 4 ++++ docker-compose.yaml | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .env.example create mode 100644 docker-compose.yaml diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..08c0845 --- /dev/null +++ b/.env.example @@ -0,0 +1,4 @@ +CLOUDFLARE_ACCOUNT_ID="" +CLOUDFLARE_API_KEY="" +CLOUDFLARE_EMAIL="" +ENV="" \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..1c03e48 --- /dev/null +++ b/docker-compose.yaml @@ -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 \ No newline at end of file