From 5f711f30f8880530112a83031a3f3d0e789d600e Mon Sep 17 00:00:00 2001 From: alexandrump Date: Mon, 9 Feb 2026 01:40:43 +0100 Subject: [PATCH] Parameterize coolify.yml env vars --- coolify.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/coolify.yml b/coolify.yml index dbce1b4..d309e43 100644 --- a/coolify.yml +++ b/coolify.yml @@ -2,9 +2,9 @@ apps: - name: gob-alert-postgres image: postgres:15-alpine env: - POSTGRES_USER: gob - POSTGRES_PASSWORD: gobpass - POSTGRES_DB: gob_alert + POSTGRES_USER: ${POSTGRES_USER} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} + POSTGRES_DB: ${POSTGRES_DB} - name: gob-alert-redis image: redis:7-alpine @@ -14,9 +14,9 @@ apps: dockerfile: Dockerfile env: - key: DATABASE_URL - value: postgres://gob:gobpass@gob-alert-postgres:5432/gob_alert + value: ${DATABASE_URL} - key: API_ADMIN_KEY - value: changeme + value: ${API_ADMIN_KEY} ports: - 3000 @@ -25,11 +25,15 @@ apps: dockerfile: Dockerfile env: - key: API_URL - value: http://gob-alert-api:3000 + value: ${API_URL} ports: - - 3001 + - 3000 notes: | This file provides a simple mapping for Coolify to build and deploy services from this repository. - Adjust `DATABASE_URL` host when Coolify provides internal network hostnames. Use the Coolify UI - to set secrets/variables in the target environment. + Set required variables in Coolify (Project → Environment Variables): + - POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB + - DATABASE_URL (example: postgres://gob:***@gob-alert-postgres:5432/gob_alert) + - API_ADMIN_KEY + - API_URL (example: http://gob-alert-api:3000) + For production, keep the API internal (no public domain) and attach the domain to the web service.