Files
templates/blueprints/hedgedoc/docker-compose.yml
autonomousventurelab-jpg d1cc00391e feat: add HedgeDoc template (#893)
Co-authored-by: Mauricio Siu <siumauricio@icloud.com>
2026-07-07 15:44:23 -06:00

38 lines
892 B
YAML

version: "3.8"
services:
hedgedoc:
image: quay.io/hedgedoc/hedgedoc:1.10.8
restart: unless-stopped
depends_on:
database:
condition: service_healthy
environment:
- CMD_DB_URL=${CMD_DB_URL}
- CMD_DOMAIN=${CMD_DOMAIN}
- CMD_PROTOCOL_USESSL=${CMD_PROTOCOL_USESSL}
- CMD_URL_ADDPORT=${CMD_URL_ADDPORT}
volumes:
- hedgedoc_uploads:/hedgedoc/public/uploads
expose:
- "3000"
database:
image: postgres:17.7-alpine
restart: unless-stopped
environment:
- POSTGRES_USER=hedgedoc
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=hedgedoc
volumes:
- hedgedoc_database:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U hedgedoc -d hedgedoc"]
interval: 10s
timeout: 5s
retries: 5
volumes:
hedgedoc_uploads:
hedgedoc_database: