feature/plantit (#5)
Co-authored-by: Sönke Domröse <soenke.domroese@lichtblick.de> Reviewed-on: https://git.home.domroese.eu/nerdlicht/docker-container/pulls/5
This commit is contained in:
26
plantit/docker-compose.yaml
Normal file
26
plantit/docker-compose.yaml
Normal 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
38
plantit/server.env
Normal 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/
|
||||
Reference in New Issue
Block a user