Skip to content

Instantly share code, notes, and snippets.

@arsalanses
Created October 5, 2024 11:55
Show Gist options
  • Save arsalanses/bb4e24bf259e0e46ef4ca20d53d1558b to your computer and use it in GitHub Desktop.
Save arsalanses/bb4e24bf259e0e46ef4ca20d53d1558b to your computer and use it in GitHub Desktop.
caddy + healthchecks
services:
caddy:
image: caddy:2.6.4
restart: unless-stopped
command: caddy reverse-proxy --from https://hc.monkeyseemonkeydo.lv:443 --to http://web:8000
ports:
- 80:80
- 443:443
volumes:
- caddy:/data
depends_on:
- web
web:
image: healthchecks/healthchecks:v2.8.1
restart: unless-stopped
environment:
- ALLOWED_HOSTS=hc.monkeyseemonkeydo.lv
- DB_NAME=/tmp/hc.sqlite
- SITE_ROOT=https://hc.monkeyseemonkeydo.lv
volumes:
caddy:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment