133 lines
3.8 KiB
Markdown
133 lines
3.8 KiB
Markdown
|
---
|
||
|
layout: default
|
||
|
---
|
||
|
|
||
|
Chaostreff vom 03/05/2023
|
||
|
===
|
||
|
|
||
|
```
|
||
|
________
|
||
|
< Hallo! >
|
||
|
--------
|
||
|
\ ^__^
|
||
|
\ (~o)\_______
|
||
|
(__)\ )\/\
|
||
|
||----w |
|
||
|
|| ||
|
||
|
```
|
||
|
## useful shell commands
|
||
|
Wenn find mal zu langsam ist nimm [fd](https://github.com/sharkdp/fd). Ausserdem:
|
||
|
**LSD**eluxe -> [Link](https://github.com/Peltoche/lsd)
|
||
|
- ![Eine Visualisierung](https://media.tenor.com/td34K3wt6x8AAAAC/trippy-three.gif)
|
||
|
|
||
|
|
||
|
[Hedgedoc Image Upload User Doku](https://demo.hedgedoc.org/s/features#Image-Upload)
|
||
|
[Hedgedoc Image Upload Config Doku ?](https://docs.hedgedoc.org/guides/s3-image-upload/)
|
||
|
[Andere Hedgedoc Doku](https://docs.hedgedoc.org/configuration/)
|
||
|
|
||
|
Der [CCC Regio-Account](https://social.bau-ha.us/@ccc_regio)
|
||
|
|
||
|
|
||
|
Für Weisheit muss in .ssh/rc:
|
||
|
```bash
|
||
|
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](https://www.heise.de/make/meldung/Auch-das-noch-Die-Loetzinn-Krise-4720274.html)
|
||
|
[Docer Compose problem mit ordnern die den selben Namen haben](https://github.com/docker/compose/issues/7403)
|
||
|
|
||
|
## Hedgedoc mit local storage Bilder Upload
|
||
|
```dockerfile=
|
||
|
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
|
||
|
```yaml=
|
||
|
# 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=
|
||
|
```
|