35 lines
655 B
YAML
35 lines
655 B
YAML
services:
|
|
app:
|
|
container_name: headscale
|
|
image: headscale/headscale:latest
|
|
command: serve
|
|
ports:
|
|
- '27896:8080'
|
|
- '27897:9090'
|
|
volumes:
|
|
- 'headscale_config:/etc/headscale/'
|
|
- 'headscale_data:/var/lib/headscale/'
|
|
networks:
|
|
- headscale_network
|
|
deploy:
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
resources:
|
|
limits:
|
|
cpus: "0.5"
|
|
memory: 512M
|
|
|
|
networks:
|
|
headscale_network:
|
|
driver: overlay
|
|
attachable: true
|
|
external: true
|
|
|
|
volumes:
|
|
headscale_config:
|
|
external: true
|
|
headscale_data:
|
|
external: true
|