Skip to content

Commit

Permalink
use custom run script
Browse files Browse the repository at this point in the history
  • Loading branch information
gidsg committed May 21, 2024
1 parent f9d8ae6 commit 08168ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ services:
- "80:80" # HTTP port
- "443:443" # HTTPS port
volumes:
- "./docker/caddy/run:/docker/caddy/run"
- ./docker/caddy/Caddyfile:/etc/caddy/Caddyfile:ro # Mount your Caddyfile
networks:
- reverse_proxy
command: "/docker/caddy/run"
2 changes: 1 addition & 1 deletion docker/caddy/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -e
export SITE_FQDN
export SITE_PASSWORD_HASHED="$(caddy hash-password --plaintext "${SITE_PASSWORD:-p4ssw0rd}")"

exec caddy run --config /docker/caddy/Caddyfile
exec caddy run --config /etc/caddy/Caddyfile:ro

0 comments on commit 08168ca

Please sign in to comment.