Created
March 19, 2025 12:36
-
-
Save skgsergio/98f7fb34e411d744f4fa3206d1061818 to your computer and use it in GitHub Desktop.
Tinybird self-managed region using cloudflared
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
## Create a Tinybird self-managed region | |
# Docs: https://www.tinybird.co/docs/forward/get-started/self-managed/manual | |
# | |
# 1. Run: tb infra add | |
# 2. Create an .env.tinybird file with TB_INFRA values | |
tinybird: | |
image: tinybirdco/tinybird-local:beta | |
env_file: | |
- .env.tinybird | |
volumes: | |
- clickhouse:/var/lib/clickhouse | |
- redis:/redis-data | |
## Create a cloudflare tunnel in Cloudflare Zero Trust | |
# Docs: https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/get-started/create-remote-tunnel/ | |
# | |
# 1. Go to https://dash.teams.cloudflare.com/ | |
# 2. Open Network > Tunnels | |
# 3. Create a Tunnel > Tunnel type: Cloudflared | |
# 4. Copy the token from any of the options presented | |
# 5. Add the public hostname that you choose when you created the Tinybird | |
# self-managed region and configure the service as http://tinybird:7181 | |
cloudflared: | |
image: cloudflare/cloudflared:latest | |
command: tunnel run | |
env_file: | |
.env.cloudflared | |
depends_on: | |
- tinybird | |
volumes: | |
clickhouse: | |
redis: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment