2021-07-21 11:07:36 +02:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
hedgedoc:
|
|
|
|
name: ${HEDGEDOC_VOLUME_NAME:-hedgedoc}
|
|
|
|
|
|
|
|
services:
|
|
|
|
hedgedoc:
|
|
|
|
container_name: ${HEDGEDOC_CONTAINER_NAME:-hedgedoc}
|
2022-02-22 15:55:18 +01:00
|
|
|
image: ${HEDGEDOC_IMAGE:-linuxserver/hedgedoc:1.9.2-ls44}
|
2021-07-21 11:07:36 +02:00
|
|
|
restart: always
|
2021-07-23 15:29:23 +02:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
2021-07-21 11:07:36 +02:00
|
|
|
volumes:
|
2022-03-07 16:02:21 +01:00
|
|
|
- hedgedoc:/config/uploads
|
2021-07-21 11:07:36 +02:00
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
environment:
|
|
|
|
# https://docs.hedgedoc.org/configuration/
|
2022-01-26 11:09:23 +01:00
|
|
|
CMD_DB_URL: postgres://${POSTGRES_USER:?err}:${POSTGRES_PASSWORD:?err}@${POSTGRES_CONTAINER_NAME:-postgres}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:?err}
|
2021-07-21 11:07:36 +02:00
|
|
|
CMD_DOMAIN: ${HEDGEDOC_DOMAIN:?err}
|
2021-07-27 10:53:48 +02:00
|
|
|
CMD_SESSION_SECRET: ${CMD_SESSION_SECRET:?err}
|
2021-07-21 11:07:36 +02:00
|
|
|
NODE_ENV: ${NODE_ENV:-development} # `production` or `development`
|
|
|
|
CMD_PROTOCOL_USESSL: ${CMD_PROTOCOL_USESSL:-false}
|
|
|
|
CMD_ALLOW_GRAVATAR: ${CMD_ALLOW_GRAVATAR:-true}
|
2021-10-11 09:23:11 +02:00
|
|
|
CMD_ALLOW_ANONYMOUS: ${CMD_ALLOW_ANONYMOUS:-true}
|
|
|
|
CMD_ALLOW_ANONYMOUS_EDITS: ${CMD_ALLOW_ANONYMOUS_EDITS:-false}
|
2021-07-21 11:07:36 +02:00
|
|
|
CMD_ALLOW_FREEURL: ${CMD_ALLOW_FREEURL:-false}
|
2021-10-11 09:09:57 +02:00
|
|
|
CMD_REQUIRE_FREEURL_AUTHENTICATION: ${CMD_REQUIRE_FREEURL_AUTHENTICATION:-false}
|
2021-07-27 10:53:48 +02:00
|
|
|
CMD_DEFAULT_PERMISSION: ${CMD_DEFAULT_PERMISSION:-editable}
|
2021-10-11 09:23:11 +02:00
|
|
|
CMD_ALLOW_EMAIL_REGISTER: ${CMD_ALLOW_EMAIL_REGISTER:-true}
|
2021-07-27 10:53:48 +02:00
|
|
|
PGID: ${PGID:-1000}
|
|
|
|
PUID: ${PUID:-1000}
|