A simple Docker Compose recipe for schollz/hostyoself.
Last active
June 13, 2024 03:25
-
-
Save pansapiens/ab2c1d5275721a77c1281621124aa00b to your computer and use it in GitHub Desktop.
schollz/hostyoself docker-compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RELAY_DOMAIN=hyos-relay.example.com | |
RELAY_URL=https://$RELAY_DOMAIN | |
[email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{$RELAY_DOMAIN} { | |
reverse_proxy hostyoself:8010 | |
tls {$EMAIL} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
hostyoself: | |
image: schollz/hostyoself | |
command: /hostyoself relay --url ${RELAY_URL} | |
ports: | |
- "8010:8010" | |
environment: | |
- RELAY_URL=${RELAY_URL} | |
caddy: | |
image: caddy:latest | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- ./Caddyfile:/etc/caddy/Caddyfile | |
- caddy_data:/data | |
- caddy_config:/config | |
environment: | |
- RELAY_DOMAIN=${RELAY_DOMAIN} | |
- EMAIL=${EMAIL} | |
volumes: | |
caddy_data: | |
caddy_config: | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment