services: << service_name >>: image: headscale/headscale:latest container_name: << service_name >> environment: - TZ=<< timezone >> volumes: - << appdata_dir >>/<< service_name >>:/etc/headscale - << appdata_dir >>/<< service_name >>-lib:/var/lib/headscale - ./config.yaml:/etc/headscale/config.yaml command: serve ports: - "<< port >>:8080" restart: unless-stopped