feature/plantit (#5)

Co-authored-by: Sönke Domröse <soenke.domroese@lichtblick.de>
Reviewed-on: #5
This commit is contained in:
2025-04-30 16:17:58 +02:00
parent e09b51b2ff
commit 04a78694d0
7 changed files with 76 additions and 12 deletions

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/