Skip to content

Instantly share code, notes, and snippets.

@mattstep
Created February 23, 2023 16:36
Show Gist options
  • Save mattstep/0998177de100c23305948b4f61b618fe to your computer and use it in GitHub Desktop.
Save mattstep/0998177de100c23305948b4f61b618fe to your computer and use it in GitHub Desktop.
Example of how to run cloudflared with unms
ingress:
- service: "https://172.19.0.3:18443"
originRequest:
noTLSVerify: true
services:
unms:
container_name: unms
image: nico640/docker-unms:latest
restart: always
ports:
- 18080:80
- 18443:443
- 12055:2055/udp
environment:
- TZ=Australia/Sydney
- PUBLIC_HTTPS_PORT=18443
- PUBLIC_WS_PORT=18443
- HTTP_PORT=18080
- SSL_CERT=certificate.crt
- SSL_CERT_KEY=private.key
volumes:
- /srv/unms:/config
cloudflared:
image: cloudflare/cloudflared:latest
command: tunnel --no-autoupdate --config /etc/cloudflared/config.yaml --grace-period 5s --metrics 0.0.0.0:8000 run
restart: always
environment:
- TUNNEL_TOKEN=<YOUR TOKEN GOES HERE>
volumes:
- /srv/cloudflared:/etc/cloudflared
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment