3.8 KiB
3.8 KiB
layout |
---|
default |
Chaostreff vom 03/05/2023
________
< Hallo! >
--------
\ ^__^
\ (~o)\_______
(__)\ )\/\
||----w |
|| ||
useful shell commands
Wenn find mal zu langsam ist nimm fd. Ausserdem: LSDeluxe -> Link
Hedgedoc Image Upload User Doku Hedgedoc Image Upload Config Doku ? Andere Hedgedoc Doku
Für Weisheit muss in .ssh/rc:
fortune | cowsay | wall -n
_________________________________________
/ Treat your friend as if he might become \
| an enemy. |
| |
\ -- Publilius Syrus /
-----------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
Auch das noch: Die Lötzinn-Krise Docer Compose problem mit ordnern die den selben Namen haben
Hedgedoc mit local storage Bilder Upload
version: "3.8"
services:
database:
container_name: ${PROJECT_NAME}-db
image: mariadb:latest
volumes:
- ./data_db:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASS}
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASS}
TZ: ${TZ}
networks:
backend-hedgedog:
aliases:
- database
hedgedoc:
image: lscr.io/linuxserver/hedgedoc:latest
container_name: ${PROJECT_NAME}-app
depends_on:
- database
environment:
- PUID=1000
- PGID=1000
- DB_HOST=database
- DB_PORT=3306
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASS}
- DB_NAME=${DB_NAME}
- CMD_DB_DIALECT="mariadb"
- TZ=${TZ}
- CMD_DOMAIN=${DOMAIN}
- CMD_URL_ADDPORT=false #optional
- CMD_PROTOCOL_USESSL=false #optional
- CMD_PORT=3000 #optional
- CMD_ALLOW_ORIGIN=['localhost'] #optional
- CMD_IMAGE_UPLOAD_TYPE="filesystem"
volumes:
- ./config:/config
- ./uploads:/public/uploads
ports:
- ${HTTP_PORT}:3000
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.http.routers.${PROJECT_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${PROJECT_NAME}.entrypoints=web"
- "traefik.http.routers.${PROJECT_NAME}.entrypoints=websecure"
- "traefik.http.routers.${PROJECT_NAME}.tls.certresolver=myresolver"
networks:
traefik:
backend-hedgedog:
.env file
# Docker Compose Project Name
# max length 11 characters
PROJECT_NAME=
# Maria DB Configuration
DB_ROOT_PASS=
DB_NAME=hedgedoc
DB_USER=hedgedoc
DB_PASS=
#Port Configuration
HTTP_PORT=0.0.0.0:3001
# Timezone
TZ=Europe/Berlin
# domain for server
DOMAIN=