docker-compose exec caddy caddy reload --config /etc/caddy/Caddyfile
Last active
September 30, 2021 14:15
-
-
Save mmachatschek/1924ad25174cef29c6181b8e30738020 to your computer and use it in GitHub Desktop.
Basic Caddyserver reverse proxy
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
domain.example.org { | |
reverse_proxy localhost:3000 | |
} |
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.7" | |
services: | |
caddy: | |
image: caddy:2.4.5-alpine | |
restart: unless-stopped | |
ports: | |
- 80:80 | |
- 443:443 | |
volumes: | |
- $PWD/Caddyfile:/etc/caddy/Caddyfile | |
- caddy_data:/data | |
- caddy_config:/config | |
volumes: | |
caddy_data: | |
external: true | |
caddy_config: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment