diff --git a/caddy/Caddyfile b/caddy/Caddyfile index 8a58062..fb7edef 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -105,6 +105,16 @@ wallos.home.domroese.eu:443 { 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 { tls soenke@domroese.eu { client_auth { diff --git a/plantit/docker-compose.yaml b/plantit/docker-compose.yaml new file mode 100644 index 0000000..7e53b4d --- /dev/null +++ b/plantit/docker-compose.yaml @@ -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 \ No newline at end of file diff --git a/plantit/server.env b/plantit/server.env new file mode 100644 index 0000000..4e35a39 --- /dev/null +++ b/plantit/server.env @@ -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/ \ No newline at end of file