Last active
April 30, 2021 17:12
-
-
Save MrHuxu/15cab5872f9447e860a08dd13e8e247d to your computer and use it in GitHub Desktop.
[vps] Caddyfile docker-compose
This file contains 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
clone this project to /root/work |
This file contains 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
*.xhu.me { | |
tls /etc/letsencrypt/live/xhu.me/fullchain.pem /etc/letsencrypt/live/xhu.me/privkey.pem | |
} | |
xhu.me { | |
encode gzip | |
reverse_proxy http://localnode:11011 | |
log { | |
output file /var/log/access.log | |
} | |
} | |
blog.xhu.me { | |
encode gzip | |
reverse_proxy http://localnode:13109 | |
log { | |
output file /var/log/access.log | |
} | |
} | |
yrel.xhu.me { | |
encode gzip | |
reverse_proxy http://localnode:8082 | |
log { | |
output file /var/log/access.log | |
} | |
} | |
leetcode150.xhu.me { | |
encode gzip | |
reverse_proxy http://localnode:15050 | |
log { | |
output file /var/log/access.log | |
} | |
} | |
leetcode-daily.xhu.me { | |
encode gzip | |
reverse_proxy http://localnode:3542 | |
log { | |
output file /var/log/access.log | |
} | |
} | |
frp.xhu.me { | |
encode gzip | |
reverse_proxy http://localnode:7500 | |
log { | |
output file /var/log/access.log | |
} | |
} | |
nas.xhu.me { | |
encode gzip | |
reverse_proxy http://localnode:8080 | |
log { | |
output file /var/log/access.log | |
} | |
} | |
img.xhu.me { | |
encode gzip | |
root * /data/img-repo | |
file_server browse | |
} | |
tools.xhu.me { | |
encode gzip | |
reverse_proxy http://localnode:7001 | |
log { | |
output file /var/log/access.log | |
} | |
} |
This file contains 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' | |
services: | |
homepage: | |
restart: always | |
image: hxtheone/homepage:latest | |
ports: | |
- 11011:11011 | |
blogo: | |
restart: always | |
image: hxtheone/blogo:latest | |
ports: | |
- 13109:13109 | |
yrel: | |
restart: always | |
image: hxtheone/yrel:latest | |
ports: | |
- 8082:8082 | |
leetcode150: | |
restart: always | |
image: hxtheone/leetcode150:latest | |
ports: | |
- 15050:15050 | |
leetcode-daily: | |
restart: always | |
image: hxtheone/leetcode-daily:latest | |
ports: | |
- 3542:3542 | |
tools: | |
restart: always | |
image: hxtheone/tools:latest | |
ports: | |
- 7001:7001 | |
caddy: | |
restart: always | |
image: caddy:latest | |
ports: | |
- 80:80 | |
- 443:443 | |
volumes: | |
- /root/work/caddy/caddyfile:/etc/caddy/Caddyfile | |
- /root/work/caddy/log:/var/log | |
- /root/work/img-repo:/data/img-repo | |
- /etc/letsencrypt:/etc/letsencrypt | |
extra_hosts: | |
localnode: 172.17.0.1 | |
depends_on: | |
- "homepage" | |
- "blogo" | |
- "yrel" | |
- "leetcode150" | |
- "leetcode-daily" | |
- "tools" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment