Advertisement
Guest User

GoDoxy with CloudFlare Tunnel

a guest
Feb 18th, 2025
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.40 KB | None | 0 0
  1. ---
  2. services:
  3.   frontend:
  4.     image: ghcr.io/yusing/go-proxy-frontend
  5.     container_name: godoxy-frontend
  6.     restart: unless-stopped
  7.     env_file: stack.env
  8.     depends_on:
  9.      - app
  10.     # modify below to fit your needs
  11.     labels:
  12.       com.centurylinklabs.watchtower.enable: "true"
  13.       proxy.aliases: godoxy
  14.       proxy.godoxy.port: 3000
  15.  
  16.       # proxy.godoxy.middlewares.cidr_whitelist: |
  17.      #   status: 403
  18.       #   message: IP not allowed
  19.       #   allow:
  20.       #     - 127.0.0.1
  21.       #     - 10.0.0.0/8
  22.       #     - 192.168.0.0/16
  23.       #     - 172.16.0.0/12
  24.   app:
  25.     image: ghcr.io/yusing/go-proxy
  26.     container_name: godoxy
  27.     restart: always
  28.     env_file: stack.env
  29.     volumes:
  30.      - /var/run/docker.sock:/var/run/docker.sock
  31.       - ${GO_PROXY_PATH}/config:/app/config
  32.       - ${GO_PROXY_PATH}/logs:/app/logs
  33.       - ${GO_PROXY_PATH}/error_pages:/app/error_pages
  34.       - ${GO_PROXY_PATH}/certs:/app/certs
  35.     networks:
  36.      - default
  37.       - proxy
  38.     labels:
  39.       com.centurylinklabs.watchtower.enable: "true"
  40.  
  41.  
  42.   tunnel:
  43.     container_name: cloudflared-tunnel
  44.     image: cloudflare/cloudflared
  45.     restart: unless-stopped
  46.     command: tunnel run
  47.     environment:
  48.      - TUNNEL_TOKEN=${CLOUDFLARE_TUNNEL_TOKEN}
  49.     labels:
  50.       com.centurylinklabs.watchtower.enable: "true"
  51.  
  52. networks:
  53.   default:
  54.   proxy:
  55.     name: proxy_network
  56.     external: true
  57.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement