Something went wrong. Try again.
Ghost is lightweight headless server that enables Ghost self hosters to bridge to standard.site with ease..
Something went wrong. Try again.
ghoststandard compose.shared-host.yaml
1.3 kB · 34 lines
YAML
at main
1234567891011121314151617181920212223242526272829303132333435# Shared-host deployment — for boxes that already run a reverse proxy# (Caddy, nginx, Traefik, Cloudflare Tunnel, …) for some other service. The# bundled Caddy from compose.yaml is omitted; the app binds to 127.0.0.1:8080# and your existing proxy handles TLS termination + the public hostname.## Typical setup:# 1. Point bridge.example.com (or whatever) at this host's public IP.# 2. Add a site block to your existing reverse proxy that proxies the# hostname to localhost:8080. See README for Caddy + nginx snippets.# 3. docker compose -f compose.shared-host.yaml up -d# 4. docker compose -f compose.shared-host.yaml exec app gs setup## Use this when you can't (or don't want to) give ghoststandard the 80/443# ports. Use the default compose.yaml when ghoststandard owns the box.
services: app: build: . restart: unless-stopped environment: GS_DB_PATH: /data/ghoststandard.sqlite GS_PORT: "8080" # Read by the setup wizard to pre-fill the bridge URL prompt. Optional. GS_HOSTNAME: ${GS_HOSTNAME:-} volumes: - gs_data:/data - ./assets:/data/assets:ro ports: # Bind to loopback only — your host reverse proxy reaches us through # 127.0.0.1:8080. Public access goes through the proxy on 443. - "127.0.0.1:8080:8080"
volumes: gs_data: