Created
October 16, 2025 19:43
-
-
Save sorinmircea/c6dbb8987e62f679e27b0dfd3271f265 to your computer and use it in GitHub Desktop.
Caddyfile configuration for my VPS
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.8' | |
| services: | |
| caddy: | |
| image: caddy:2.8.0 | |
| cap_add: | |
| - NET_ADMIN | |
| ports: | |
| - "80:80" | |
| - "443:443" | |
| - "443:443/udp" | |
| volumes: | |
| - $PWD/Caddyfile:/etc/caddy/Caddyfile | |
| - /server/data/reverse_proxy/data:/data | |
| - /server/data/reverse_proxy/config:/config | |
| - /server/data/sorinmircea.com:/sorinmircea.com | |
| networks: | |
| - reverse_proxy | |
| - reverse_proxy_stack | |
| extra_hosts: | |
| - "host.docker.internal:host-gateway" | |
| deploy: | |
| update_config: | |
| order: start-first | |
| networks: | |
| reverse_proxy: | |
| external: true | |
| reverse_proxy_stack: | |
| external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment