Created
August 4, 2024 04:50
-
-
Save u1i/c4c95add9f15a06144e3a418def5ee75 to your computer and use it in GitHub Desktop.
Caddy docker letsencrypt
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
{ | |
email [email protected] | |
} | |
test01.mydomain.tld { | |
reverse_proxy http://frontend:8080 | |
} |
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
services: | |
caddy: | |
image: caddy | |
ports: | |
- "80:80" | |
- "443:443" | |
networks: | |
- caddy-net | |
volumes: | |
- /root/caddy/data/:/data/ | |
- /root/caddy/config/:/config/ | |
- /root/caddy/caddy/Caddyfile:/etc/caddy/Caddyfile | |
frontend: | |
container_name: frontend | |
image: u1ih/hello:latest | |
ports: | |
- "8000:8080" | |
networks: | |
- caddy-net | |
environment: | |
dummyvar: test1 | |
networks: | |
caddy-net: | |
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
docker-compose down | |
docker-compose up --build -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment