Advertisement
jothemewi

compose.yml

Apr 19th, 2025 (edited)
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.61 KB | Software | 0 0
  1. services:
  2.   pangolin:
  3.     image: fosrl/pangolin:1.2.0
  4.     container_name: pangolin
  5.     restart: unless-stopped
  6.     volumes:
  7.      - ./config:/app/config
  8.     healthcheck:
  9.       test:
  10.        - CMD
  11.         - curl
  12.         - -f
  13.         - http://pangolin:3001/api/v1/
  14.       interval: 3s
  15.       timeout: 3s
  16.       retries: 15
  17.   gerbil:
  18.     image: fosrl/gerbil:1.0.0
  19.     container_name: gerbil
  20.     restart: unless-stopped
  21.     depends_on:
  22.       pangolin:
  23.         condition: service_healthy
  24.     command:
  25.      - --reachableAt=http://gerbil:3003
  26.       - --generateAndSaveKeyTo=/var/config/key
  27.       - --remoteConfig=http://pangolin:3001/api/v1/gerbil/get-config
  28.       - --reportBandwidthTo=http://pangolin:3001/api/v1/gerbil/receive-bandwidth
  29.     volumes:
  30.      - ./config/:/var/config
  31.     cap_add:
  32.      - NET_ADMIN
  33.       - SYS_MODULE
  34.     ports:
  35.      - 51820:51820/udp
  36.       - 443:443 # Port for traefik because of the network_mode
  37.       - 80:80 # Port for traefik because of the network_mode
  38.   traefik:
  39.     image: traefik:v3.3.6
  40.     container_name: traefik
  41.     restart: unless-stopped
  42.     network_mode: service:gerbil # Ports appear on the gerbil service
  43.     depends_on:
  44.       pangolin:
  45.         condition: service_healthy
  46.     command:
  47.      - --configFile=/etc/traefik/traefik_config.yml
  48.     environment:
  49.       CLOUDFLARE_DNS_API_TOKEN: MY_CF_API_TOKEN
  50.     volumes:
  51.      - ./config/traefik:/etc/traefik:ro # Volume to store the Traefik configuration
  52.       - ./config/letsencrypt:/letsencrypt # Volume to store the Let's Encrypt certificates
  53. networks:
  54.   default:
  55.     driver: bridge
  56.     name: pangolin
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement