fix: coolify
This commit is contained in:
@@ -6,15 +6,13 @@ services:
|
|||||||
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
depends_on:
|
|
||||||
postgres:
|
|
||||||
condition: service_healthy
|
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
GIN_MODE: release
|
GIN_MODE: release
|
||||||
# Generated by Coolify (see Environment Variables); needed in the X-Admin-Token header to upload releases
|
# Generated by Coolify (see Environment Variables); needed in the X-Admin-Token header to upload releases
|
||||||
ADMIN_TOKEN: ${SERVICE_PASSWORD_64_ADMINTOKEN}
|
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:
|
volumes:
|
||||||
- kooltap_uploads:/app/uploads
|
- kooltap_uploads:/app/uploads
|
||||||
@@ -31,27 +29,7 @@ services:
|
|||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
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:
|
volumes:
|
||||||
kooltap_uploads:
|
kooltap_uploads:
|
||||||
kooltap_tmp:
|
kooltap_tmp:
|
||||||
kooltap_data:
|
kooltap_data:
|
||||||
kooltap_postgres:
|
|
||||||
|
|||||||
Reference in New Issue
Block a user