diff --git a/README.md b/README.md index 13a7878..29a164b 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ Not every stack is tested to fully work. | Folding@Home | ✅ | `johnktims/folding-at-home` | Protein folding distributed computing platform. | [Website](https://foldingathome.org), [My guide](https://skobk.in/2020/06/folding-at-home-quick-start/) | | Forgejo | ✅ | `codeberg.org/forgejo/forgejo` | Lightweight Git hosting platform. | [Website](https://forgejo.org), [Github](https://codeberg.org/forgejo/forgejo) | | Gatus | ✅ | `twinproduction/gatus` | Advanced service(s) status page. | [Website](https://gatus.io), [Github](https://github.com/TwiN/gatus) | +| HedgeDoc | ✅ | `lscr.io/linuxserver/hedgedoc` | Collaborative text editor. | [Website](https://hedgedoc.org), [Github](https://github.com/hedgedoc/hedgedoc) | | Home Assistant | ✅ | `ghcr.io/home-assistant/home-assistant` | Home automation suite. | [Website](https://www.home-assistant.io/), [Github](https://github.com/home-assistant) | | Homer | ✅ | `b4bz/homer` | Server homepage generator. | [Github](https://github.com/bastienwirtz/homer), [Demo](https://homer-demo.netlify.app), [Configuration](https://github.com/bastienwirtz/homer/blob/main/docs/configuration.md) | | I2PD | ✅ | `purplei2p/i2pd` | The Invisible Internet router. | [Website](https://i2pd.website), [Github](https://github.com/PurpleI2P/i2pd/), [I2P project](https://geti2p.net/) | diff --git a/hedgedoc/ docker-compose.yml b/hedgedoc/ docker-compose.yml new file mode 100644 index 0000000..3520440 --- /dev/null +++ b/hedgedoc/ docker-compose.yml @@ -0,0 +1,33 @@ +services: + hedgedoc: + image: 'lscr.io/linuxserver/hedgedoc:${IMAGE_TAG:-latest}' + container_name: 'hedgedoc' + env_file: '.env' + environment: + - 'PUID=${USER_ID:-1000}' + - 'PGID=${GROUP_ID:-1000}' + - 'TZ=${TIMEZONE:-Europe/Moscow}' + - 'DB_HOST=${DATABASE_HOST:-host.docker.internal}' + - 'DB_PORT=${DATABASE_PORT:-3306}' + - 'DB_USER=hedgedoc' + - 'DB_PASS=' + - 'DB_NAME=${DATABASE_NAME:-hedgedoc}' + - 'CMD_DOMAIN=${DOMAIN}' + #- 'CMD_URL_ADDPORT=false' #optional + - 'CMD_PROTOCOL_USESSL=true' #optional + - 'CMD_PORT=${WEB_PORT:-8394}' #optional + - CMD_ALLOW_ORIGIN=['${DOMAIN}'] #optional + - 'CMD_DB_DIALECT=${DATABASE_DIALECT:-mariadb}' #optional + - 'CMD_ALLOW_GRAVATAR=${GRAVATAR_ENABLED:true}' #optional + volumes: + - '${DIR_CONFIG:-./config}:/config' + extra_hosts: + - 'host.docker.internal:host-gateway' + ports: + - '${WEB_ADDRESS:-127.0.0.1}:${WEB_PORT:-8394}:${WEB_PORT:-8394}' + restart: unless-stopped + logging: + driver: 'json-file' + options: + max-size: '${LOG_MAX_SIZE:-5m}' + max-file: '${LOG_MAX_FILE:-5}' diff --git a/hedgedoc/.env.dist b/hedgedoc/.env.dist new file mode 100644 index 0000000..c96937e --- /dev/null +++ b/hedgedoc/.env.dist @@ -0,0 +1,24 @@ +# https://hub.docker.com/r/linuxserver/hedgedoc + +#IMAGE_TAG=latest + +USER_ID=1000 +GROUP_ID=1000 + +WEB_ADDRESS=127.0.0.1 +WEB_PORT=8394 + +DOMAIN=hedgedoc.domain.tld + +DIR_CONFIG=./config + +DATABASE_HOST=host.docker.internal +DATABASE_PORT=3306 +DATABASE_NAME= +DATABASE_USER= +DATABASE_PASS +#DATABASE_DIALECT=postgres + +TIMEZONE=Europe/Moscow + +#GRAVATAR_ENABLED=false \ No newline at end of file diff --git a/hedgedoc/config/.gitignore b/hedgedoc/config/.gitignore new file mode 100644 index 0000000..a68d087 --- /dev/null +++ b/hedgedoc/config/.gitignore @@ -0,0 +1,2 @@ +/* +!/.gitignore