fix: coolify
This commit is contained in:
@@ -6,15 +6,13 @@ 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
|
||||
# Set in Coolify to the "Postgres URL (internal)" of the existing kooltap database resource.
|
||||
# Requires "Connect To Predefined Network" so this container can reach it.
|
||||
DATABASE_URL: ${DATABASE_URL:?}
|
||||
|
||||
volumes:
|
||||
- kooltap_uploads:/app/uploads
|
||||
@@ -31,27 +29,7 @@ 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:
|
||||
|
||||
Reference in New Issue
Block a user