compose.yaml 784 B

123456789101112131415161718192021222324
  1. ---
  2. # -- (Optional) When using a custom network
  3. # networks:
  4. # your-custom-network:
  5. # -- (Optional) When attaching an external network
  6. # external: true
  7. services:
  8. twingate_connector:
  9. container_name: twingate_connector
  10. image: docker.io/twingate/connector:1.71.0
  11. environment:
  12. - TWINGATE_NETWORK=your-twingate-network
  13. - TWINGATE_ACCESS_TOKEN=${TWINGATE_ACCESS_TOKEN}
  14. - TWINGATE_REFRESH_TOKEN=${TWINGATE_REFRESH_TOKEN}
  15. # -- (Optional) Change loglevel
  16. # - TWINGATE_LOG_LEVEL=3
  17. # -- (Optional) Add custom DNS Server
  18. # - TWINGATE_DNS=10.20.0.1
  19. sysctls:
  20. net.ipv4.ping_group_range: "0 2147483647"
  21. # -- (Optional) When using a custom network
  22. # networks:
  23. # - your-custom-network
  24. restart: unless-stopped