version: "3.9" networks: proxy: external: true net: external: false services: hedgedoc-db: image: lscr.io/linuxserver/mariadb:latest container_name: hedgedoc-db restart: always environment: - PUID=1000 - PGID=1000 - TZ=Europe/Berlin - MYSQL_ROOT_PASSWORD=root - MYSQL_DATABASE=db - MYSQL_USER=user - MYSQL_PASSWORD=password volumes: - ./db:/config expose: - 3306 networks: - net hedgedoc: image: lscr.io/linuxserver/hedgedoc:latest container_name: hedgedoc restart: always depends_on: - hedgedoc-db environment: - PGID=1000 - PUID=1000 - TZ=Europe/Berlin - CMD_DB_HOST=hedgedoc-db - CMD_DB_USERNAME=user - CMD_DB_PASSWORD=password - CMD_DB_NAME=db - CMD_DB_PORT=3306 - CMD_DOMAIN=pad.example.de - CMD_PROTOCOL_USESSL=true - CMD_ALLOW_FREEURL=true - CMD_ALLOW_PDF_EXPORT=true - CMD_ALLOW_ANONYMOUS=false - CMD_ALLOW_ANONYMOUS_EDITS=true - CMD_ALLOW_EMAIL_REGISTER=false - CMD_LOGLEVEL=warn - CMD_SESSION_SECRET=example volumes: - ./config:/config - ./uploads:/opt/hedgedoc/public/uploads expose: - 3000 networks: - net - proxy