Setup of HedgeDoc 1.9.6
No problems setting up the Docker container with a Docker compse yaml file within Portainer.
Setup Image
export SRC_DCKR_RGT=quay.io && \
export SRC_DCKR_IMG=hedgedoc/hedgedoc && \
export SRC_DCKR_TG=1.9.6 && \
docker pull --platform linux/amd64 $SRC_DCKR_RGT/$SRC_DCKR_IMG:$SRC_DCKR_TG && \
docker tag $SRC_DCKR_RGT/$SRC_DCKR_IMG:$SRC_DCKR_TG registry.bierochs.org/$SRC_DCKR_IMG:$SRC_DCKR_TG && \
docker tag registry.bierochs.org/$SRC_DCKR_IMG:$SRC_DCKR_TG registry.bierochs.org/${SRC_DCKR_IMG}:latest && \
docker push registry.bierochs.org/$SRC_DCKR_IMG:$SRC_DCKR_TG && \
docker push registry.bierochs.org/${SRC_DCKR_IMG}:latest
1.9.6: Pulling from hedgedoc/hedgedoc
Digest: sha256:f1d9d8e0343e4a28e90a2c156b2c77c696e0c533cfb5627e62b08ff332c96f37
Status: Image is up to date for quay.io/hedgedoc/hedgedoc:1.9.6
quay.io/hedgedoc/hedgedoc:1.9.6
The push refers to repository [registry.bierochs.org/hedgedoc/hedgedoc]
6eda83200081: Layer already exists
5f70bf18a086: Layer already exists
b6d80479fe1f: Layer already exists
1094fed94305: Layer already exists
84b567c39874: Layer already exists
599b0600b3d9: Layer already exists
2ddafd0eeaf0: Layer already exists
38feb7e94dc4: Layer already exists
2342c3bf1752: Layer already exists
fb3f0813957e: Layer already exists
171e8ab80dda: Layer already exists
cebfcb5b7f34: Layer already exists
b09ed233a1b2: Layer already exists
4695cdfb426a: Layer already exists
1.9.6: digest: sha256:921d9d14a815b54767e84ce0e23f9775ece78d3350a9542a22b7ae06d25b210c size: 3445
The push refers to repository [registry.bierochs.org/hedgedoc/hedgedoc]
6eda83200081: Layer already exists
5f70bf18a086: Layer already exists
b6d80479fe1f: Layer already exists
1094fed94305: Layer already exists
84b567c39874: Layer already exists
599b0600b3d9: Layer already exists
2ddafd0eeaf0: Layer already exists
38feb7e94dc4: Layer already exists
2342c3bf1752: Layer already exists
fb3f0813957e: Layer already exists
171e8ab80dda: Layer already exists
cebfcb5b7f34: Layer already exists
b09ed233a1b2: Layer already exists
4695cdfb426a: Layer already exists
latest: digest: sha256:921d9d14a815b54767e84ce0e23f9775ece78d3350a9542a22b7ae06d25b210c size: 3445
Setup Docker Compose YAML File
version: '3'
services:
app:
# Make sure to use the latest release from https://hedgedoc.org/latest-release
image: registry.bierochs.org/hedgedoc/hedgedoc:latest
environment:
- TZ=Europe/Vienna
- NODE_ENV=production
- CMD_DB_USERNAME=******
- CMD_DB_PASSWORD=******
- CMD_DB_DATABASE=******
- CMD_DB_HOST=******.bierochs.org
- CMD_DB_PORT=5432
- CMD_DB_DIALECT=postgres
- CMD_DOMAIN=hedgedoc.bierochs.org
- CMD_PROTOCOL_USESSL=true
- CMD_URL_ADDPORT=false
- CMD_ALLOW_EMAIL_REGISTER=false
- CMD_ALLOW_ANONYMOUS=false
- CMD_ALLOW_FREEURL=true
- CMD_REQUIRE_FREEURL_AUTH=true
- CMD_SESSION_SECRET=******
- CMD_OAUTH2_PROVIDERNAME=Authelia
- CMD_OAUTH2_CLIENT_ID=******
- CMD_OAUTH2_CLIENT_SECRET=******
- CMD_OAUTH2_SCOPE=openid email profile
- CMD_OAUTH2_USER_PROFILE_USERNAME_ATTR=sub
- CMD_OAUTH2_USER_PROFILE_DISPLAY_NAME_ATTR=name
- CMD_OAUTH2_USER_PROFILE_EMAIL_ATTR=email
- CMD_OAUTH2_USER_PROFILE_URL=https://login.bierochs.org/api/oidc/userinfo
- CMD_OAUTH2_TOKEN_URL=https://login.bierochs.org/api/oidc/token
- CMD_OAUTH2_AUTHORIZATION_URL=https://login.bierochs.org/api/oidc/authorize
- CMD_LOGLEVEL=debug
volumes:
- /srv/hedgedoc/public/uploads:/hedgedoc/public/uploads:z
ports:
- "3002:3000"