(Grav GitSync) Automatic Commit from RealStickman

This commit is contained in:
RealStickman 2022-06-30 10:57:06 +02:00 committed by GitSync
parent 5f7a7874cf
commit 5999bc5565

View File

@ -3,11 +3,12 @@ title: Hedgedoc
--- ---
[toc] [toc]
## Network and Pod ## Podman
### Network and Pod
`# podman network create net_hedgedoc` `# podman network create net_hedgedoc`
`# podman pod create --name pod_hedgedoc --network net_hedgedoc -p 127.0.0.1:5432:5432 -p 3005:3000` `# 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 \ # podman run --name hedgedocdb \
-e POSTGRES_PASSWORD=hedgedoc \ -e POSTGRES_PASSWORD=hedgedoc \
@ -22,7 +23,7 @@ title: Hedgedoc
Create database used by hedgedoc Create database used by hedgedoc
`=# CREATE DATABASE hedgedocdb;` `=# CREATE DATABASE hedgedocdb;`
## Application ### Application
``` ```
# podman run -d --name hedgedoc \ # podman run -d --name hedgedoc \
-e CMD_DB_URL=postgres://postgres:hedgedoc@localhost:5432/hedgedocdb \ -e CMD_DB_URL=postgres://postgres:hedgedoc@localhost:5432/hedgedocdb \
@ -36,6 +37,8 @@ Create database used by hedgedoc
--pod pod_hedgedoc \ --pod pod_hedgedoc \
quay.io/hedgedoc/hedgedoc:latest 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. 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` `# podman exec -it hedgedocdb bash`