feat: clanker fixxes + postgress

This commit is contained in:
2026-10-18 01:50:08 +02:00
parent 95a25453df
commit 6c3b2bdc1f
18 changed files with 829 additions and 180 deletions
+26
View File
@@ -6,14 +6,20 @@ services:
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
GIN_MODE: release
# Generated by Coolify (see Environment Variables); needed in the X-Admin-Token header to upload releases
ADMIN_TOKEN: ${SERVICE_PASSWORD_64_ADMINTOKEN}
DATABASE_URL: postgres://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@postgres:5432/${POSTGRES_DB:-kooltap}?sslmode=disable
volumes:
- kooltap_uploads:/app/uploads
- kooltap_tmp:/app/tmp
# Only needed until the old SQLite database has been imported into Postgres on first start
- kooltap_data:/app/data
expose:
@@ -25,7 +31,27 @@ services:
timeout: 5s
retries: 5
postgres:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_USER: ${SERVICE_USER_POSTGRES}
POSTGRES_PASSWORD: ${SERVICE_PASSWORD_POSTGRES}
POSTGRES_DB: ${POSTGRES_DB:-kooltap}
volumes:
- kooltap_postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 10
volumes:
kooltap_uploads:
kooltap_tmp:
kooltap_data:
kooltap_postgres: