add plantit

This commit is contained in:
Sönke Domröse
2025-04-30 16:14:57 +02:00
parent 77f66dab01
commit 9099e00147
3 changed files with 74 additions and 0 deletions

View File

@@ -105,6 +105,16 @@ wallos.home.domroese.eu:443 {
reverse_proxy 192.168.1.65:8282 reverse_proxy 192.168.1.65:8282
} }
plantit.home.domroese.eu:443 {
tls soenke@domroese.eu
reverse_proxy 192.168.1.65:3632
}
api.plantit.home.domroese.eu:443 {
tls soenke@domroese.eu
reverse_proxy 192.168.1.65:8632
}
nas.home.domroese.eu { nas.home.domroese.eu {
tls soenke@domroese.eu { tls soenke@domroese.eu {
client_auth { client_auth {

View File

@@ -0,0 +1,26 @@
name: plant-it
services:
server:
image: msdeluise/plant-it-server:latest
env_file: server.env
depends_on:
- db
- cache
restart: unless-stopped
volumes:
- "/home/soenke/docker-data/plantit/upload-dir:/upload-dir"
- "/home/soenke/docker-data/plantit/certs:/certificates"
ports:
- "8632:8080"
- "3632:3000"
db:
image: mysql:8.0
restart: always
env_file: server.env
volumes:
- "/home/soenke/docker-data/plantit/db:/var/lib/mysql"
cache:
image: redis:7.2.1
restart: always

38
plantit/server.env Normal file
View File

@@ -0,0 +1,38 @@
#
# DB
#
MYSQL_HOST=db
MYSQL_PORT=3306
MYSQL_USERNAME=plantit
MYSQL_PSW=plantit123
MYSQL_DATABASE=bootdb
MYSQL_ROOT_PASSWORD=plantit123
#
# JWT
#
JWT_SECRET=putTheSecretHere
JWT_EXP=1
#
# Server config
#
USERS_LIMIT=-1
UPLOAD_DIR=/upload-dir
API_PORT=8632
TREFLE_KEY=
LOG_LEVEL=DEBUG
ALLOWED_ORIGINS=*
#
# Cache
#
CACHE_TTL=86400
CACHE_HOST=cache
CACHE_PORT=6379
#
# SSL
#
SSL_ENABLED=false
CERTIFICATE_PATH=/certificates/