summaryrefslogtreecommitdiff
path: root/playbooks/roles/outbound/templates/docker-compose.yml
diff options
context:
space:
mode:
authorElizabeth Hunt <me@liz.coffee>2025-03-15 00:50:34 -0700
committerElizabeth Hunt <me@liz.coffee>2025-03-15 00:50:34 -0700
commitfb7e6890d8516618fa3baec0edf84048e2b6601d (patch)
treea7bc5cfce71288ab69e8fa590d0f02df90c55385 /playbooks/roles/outbound/templates/docker-compose.yml
downloadinfra-fb7e6890d8516618fa3baec0edf84048e2b6601d.tar.gz
infra-fb7e6890d8516618fa3baec0edf84048e2b6601d.zip
a docker swarm
Diffstat (limited to 'playbooks/roles/outbound/templates/docker-compose.yml')
-rw-r--r--playbooks/roles/outbound/templates/docker-compose.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/playbooks/roles/outbound/templates/docker-compose.yml b/playbooks/roles/outbound/templates/docker-compose.yml
new file mode 100644
index 0000000..c644ca4
--- /dev/null
+++ b/playbooks/roles/outbound/templates/docker-compose.yml
@@ -0,0 +1,39 @@
+---
+
+services:
+ headscale:
+ image: headscale/headscale:stable-debug # until something better comes along with wget or i make my own dockerfile...
+ pull_policy: always
+ restart: unless-stopped
+ command: serve
+ volumes:
+ - ./config:/etc/headscale
+ - ./data:/var/lib/headscale
+ networks:
+ - proxy
+ environment:
+ - VIRTUAL_HOST={{ headscale_host }}
+ - VIRTUAL_PORT={{ headscale_port }}
+ - LETSENCRYPT_HOST={{ headscale_host }}
+ healthcheck:
+ test: ["CMD", "wget", "-qO", "-", "http://localhost:8080/health"]
+ interval: 10s
+ timeout: 5s
+ retries: 3
+
+ headscale-ui:
+ image: ghcr.io/gurucomputing/headscale-ui:latest
+ pull_policy: always
+ restart: unless-stopped
+ networks:
+ - proxy
+ environment:
+ - VIRTUAL_HOST={{ headscale_host }}
+ - VIRTUAL_PORT={{ headscale_port }}
+ - LETSENCRYPT_HOST={{ headscale_host }}
+ - VIRTUAL_PATH=/web/
+ - VIRTUAL_DEST=/
+
+networks:
+ proxy:
+ external: true