From 5999bc5565be1456bc63f16ef56c4c4a503e2244 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Thu, 30 Jun 2022 10:57:06 +0200 Subject: [PATCH] (Grav GitSync) Automatic Commit from RealStickman --- pages/02.linux/24.hedgedoc/default.en.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pages/02.linux/24.hedgedoc/default.en.md b/pages/02.linux/24.hedgedoc/default.en.md index 1b6dec3..62edfc4 100644 --- a/pages/02.linux/24.hedgedoc/default.en.md +++ b/pages/02.linux/24.hedgedoc/default.en.md @@ -3,11 +3,12 @@ title: Hedgedoc --- [toc] -## Network and Pod +## Podman +### Network and Pod `# podman network create net_hedgedoc` `# podman pod create --name pod_hedgedoc --network net_hedgedoc -p 127.0.0.1:5432:5432 -p 3005:3000` -## Database +### Database ``` # podman run --name hedgedocdb \ -e POSTGRES_PASSWORD=hedgedoc \ @@ -22,7 +23,7 @@ title: Hedgedoc Create database used by hedgedoc `=# CREATE DATABASE hedgedocdb;` -## Application +### Application ``` # podman run -d --name hedgedoc \ -e CMD_DB_URL=postgres://postgres:hedgedoc@localhost:5432/hedgedocdb \ @@ -36,6 +37,8 @@ Create database used by hedgedoc --pod pod_hedgedoc \ quay.io/hedgedoc/hedgedoc:latest ``` +## Management +### Create user Because `CMD_ALLOW_EMAIL_REGISTER` is set to `false`, registration of new users has to be done through the CLI interface using `bin/manage_users` in the container. `# podman exec -it hedgedocdb bash`