fix: add postgres driver to implementation
All checks were successful
Deploy Miniplan / build (push) Successful in 3m22s

This commit is contained in:
walamana 2024-08-07 20:55:53 +02:00
parent d24457a4f6
commit 3017e10e0d
2 changed files with 39 additions and 2 deletions

View File

@ -1,4 +1,41 @@
name: "Miniplan" name: miniplan
networks:
db:
services: services:
db:
image: postgres
restart: always
environment:
- POSTGRES_PASSWORD=minis
- POSTGRES_USER=minis
- POSTGRES_DB=minis
networks:
- db
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "db_prod"]
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
app: app:
image: git.walamana.de/walamana/miniplan
restart: no
depends_on:
- db
environment:
- KTOR_DEPLOYMENT_PORT=8081
- KTOR_DEVELOPMENT=true
- JWT_SECRET=${JWT_SECRET}
- JWT_ISSUER=${JWT_ISSUER}
- JWT_AUDIENCE=${JWT_AUDIENCE}
- JWT_REALM=${JWT_REALM}
- DATABASE_URL=jdbc:postgresql://localhost:5432/miniplan
- DATABASE_DRIVER=org.postgresql.Driver
- DATABASE_USER=minis
- DATABASE_PASSWORD=minis
- ADMIN_PASSWORD=${ADMIN_PASSWORD}
ports:
- 8081:8081

View File

@ -39,7 +39,7 @@ dependencies {
implementation("io.ktor:ktor-server-netty-jvm") implementation("io.ktor:ktor-server-netty-jvm")
implementation("ch.qos.logback:logback-classic:$logback_version") implementation("ch.qos.logback:logback-classic:$logback_version")
// implementation("org.postgresql:postgresql:42.7.2") implementation("org.postgresql:postgresql:42.7.2")
implementation("com.h2database:h2:$h2_version") implementation("com.h2database:h2:$h2_version")
implementation("io.github.cdimascio:dotenv-kotlin:6.4.1") implementation("io.github.cdimascio:dotenv-kotlin:6.4.1")