# Run from the repository root: docker compose -f deploy/compose.yaml ... services: guardrail: build: context: .. dockerfile: deploy/Dockerfile environment: OPEN_GUARDRAIL_PUBLIC_URL: ${OPEN_GUARDRAIL_PUBLIC_URL:?Set the external HTTPS origin, without a trailing slash} volumes: - guardrail-data:/data networks: - backend restart: unless-stopped # No host port: plaintext HTTP is reachable only on this private network. proxy: image: nginx:stable-alpine ports: - "${OPEN_GUARDRAIL_HTTPS_BIND:-127.0.0.1:8443}:443" volumes: - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro - type: bind source: ${OPEN_GUARDRAIL_TLS_DIR:?Set an absolute directory containing fullchain.pem and privkey.pem} target: /etc/nginx/tls read_only: true bind: create_host_path: false networks: - edge - backend depends_on: - guardrail restart: unless-stopped networks: edge: backend: internal: true volumes: guardrail-data: