diff --git a/.env.example b/.env.example index 5a5f269..8661fa0 100644 --- a/.env.example +++ b/.env.example @@ -10,6 +10,12 @@ DOMAIN=example.com # You also need to uncomment the corresponding block in your Caddyfile # ADMIN_DOMAIN= +# Ghost ports +# Ports where Ghost will listen for HTTP traffic. +# Change these if the default ports are in use, or if Ghost is behind a reverse proxy. +HTTP_PORT=80 +HTTPS_PORT=443 + # Database settings # All database settings must not be changed once the database is initialised DATABASE_ROOT_PASSWORD=reallysecurerootpassword diff --git a/compose.yml b/compose.yml index 32ae177..5fc0fcc 100644 --- a/compose.yml +++ b/compose.yml @@ -5,8 +5,8 @@ services: image: caddy:2.10.0-alpine@sha256:e2e3a089760c453bc51c4e718342bd7032d6714f15b437db7121bfc2de2654a6 restart: always ports: - - "80:80" - - "443:443" + - "${HTTP_PORT:-80}:80" + - "${HTTPS_PORT:-443}:443" environment: DOMAIN: ${DOMAIN:?DOMAIN environment variable is required} ADMIN_DOMAIN: ${ADMIN_DOMAIN:-}