appstore/apps/headscale/0.23.0-alpha3/docker-compose.yml
2024-02-04 21:46:34 +08:00

29 lines
623 B
YAML

version: '3'
services:
headscale:
container_name: ${CONTAINER_NAME}
restart: always
networks:
1panel-network:
ipv4_address: ${SUBNET}
ports:
- "${PANEL_APP_PORT_HTTP}:8080"
volumes:
- "./data/config:/etc/headscale"
- "./data/data:/var/lib/headscale"
cap_add:
- NET_ADMIN
- NET_RAW
- SYS_MODULE
sysctls:
- net.ipv4.ip_forward=1
- net.ipv6.conf.all.forwarding=1
command: ['headscale', 'serve']
image: headscale/headscale:0.23.0-alpha3
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true