Skip to content

Commit

Permalink
Add Caddy HTTPS reverse-proxy server
Browse files Browse the repository at this point in the history
  • Loading branch information
kulemantu committed Jul 19, 2023
1 parent 4f19fb9 commit 961919e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions caddy/Caddyfile.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
email [email protected]
}

domain.tld {
reverse_proxy http://container:<port>
}
18 changes: 18 additions & 0 deletions caddy/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: '3'

services:
caddy:
image: caddy
ports:
- "80:80"
- "443:443"
networks:
- proxy
volumes:
- ./data/:/data/
- ./config/:/config/
- ./Caddyfile:/etc/caddy/Caddyfile

networks:
proxy:
external: true

0 comments on commit 961919e

Please sign in to comment.