https://github.com/ryansch/docker-cloudflared
https://github.com/ryansch/docker-cloudflared
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ryansch/docker-cloudflared
- Owner: ryansch
- License: mit
- Created: 2022-06-14T17:27:03.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-02T17:45:25.000Z (almost 3 years ago)
- Last Synced: 2025-07-31T09:29:22.234Z (5 months ago)
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cloudflared tunnel
This repo sets up cloudflared to run on the docker host's network and use remote management so you can use the Zero Trust dashboard.
## System Setup
```sh
sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
```
## Container Time
```sh
# Place the other files in this repo into `/opt/cloudflared-tunnel`
cd /opt/cloudflared-tunnel
# Create a .env file and replace the CHANGEME items. Your tunnel token will be in the Zero Trust dashboard.
sudo systemctl enable --now /opt/cloudflared-tunnel/cloudflared-tunnel.service
docker compose logs -f
# Your tunnel should be up and show as connected in the dashboard!
```