feat: clanker fixxes + postgress
This commit is contained in:
+29
-3
@@ -1,5 +1,3 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
kooltap-updater:
|
||||
image: kooltap-updater:latest
|
||||
@@ -9,18 +7,46 @@ services:
|
||||
#ports:
|
||||
# - "3000:3000"
|
||||
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
|
||||
environment:
|
||||
GIN_MODE: release
|
||||
ADMIN_TOKEN: ${ADMIN_TOKEN}
|
||||
DATABASE_URL: postgres://kooltap:${POSTGRES_PASSWORD}@kooltap-postgres:5432/kooltap?sslmode=disable
|
||||
|
||||
volumes:
|
||||
- ./uploads:/app/uploads
|
||||
- ./tmp:/app/tmp
|
||||
# Only needed until the old SQLite database has been imported into Postgres on first start
|
||||
- ./data:/app/data
|
||||
|
||||
networks:
|
||||
- scoobydoo
|
||||
|
||||
postgres:
|
||||
image: postgres:17-alpine
|
||||
container_name: kooltap-postgres
|
||||
restart: unless-stopped
|
||||
|
||||
environment:
|
||||
POSTGRES_USER: kooltap
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
POSTGRES_DB: kooltap
|
||||
|
||||
volumes:
|
||||
- ./postgres:/var/lib/postgresql/data
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U kooltap -d kooltap"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
networks:
|
||||
- scoobydoo
|
||||
|
||||
networks:
|
||||
scoobydoo:
|
||||
external: true
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user