From d410216a4d56542c7bbd521f9e46854be3d6820c Mon Sep 17 00:00:00 2001 From: kianiadee Date: Fri, 29 May 2026 02:57:57 +0300 Subject: [PATCH] Revert to Coolify source-build (drop registry-image pull) The registry-image route needed a working CI runner + owner-namespaced registry push; not worth it for a cosmetic image_sha. Coolify builds from the connected repo as before. Co-Authored-By: Claude Opus 4.8 --- docker-compose.coolify.yml | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/docker-compose.coolify.yml b/docker-compose.coolify.yml index 8b1db41..99e9fd0 100644 --- a/docker-compose.coolify.yml +++ b/docker-compose.coolify.yml @@ -11,12 +11,8 @@ # Traefik labels automatically; don't add them here. # - All env values live in Coolify's Environment Variables panel. # Compose only references them with ${VAR_NAME}. -# - All three services PULL the same CI-built image from the Forgejo -# registry (repo.rahamafresh.com/fleet-platform). Coolify no longer builds -# from source here. REQUIRES: (1) a registry credential for -# repo.rahamafresh.com configured in Coolify so it can pull, and (2) the -# Forgejo build-push CI to have finished pushing :latest for this commit -# BEFORE you Redeploy — otherwise Coolify pulls the previous :latest. +# - Coolify will clone this repo, build the image once, and re-use it +# across all three services (saves disk + build time). # - `coolify` network is created by Coolify; we attach so containers can # reach the TimescaleDB by service name. @@ -41,11 +37,8 @@ networks: services: gateway: - # Pull the CI-built image (Forgejo build-push bakes APP_GIT_SHA=github.sha) - # instead of building from source, so /health reports the real commit. - # Override FLEET_IMAGE in Coolify to pin/rollback to a specific :. - image: ${FLEET_IMAGE:-repo.rahamafresh.com/fleet-platform:latest} - pull_policy: always + build: . + image: fleet-platform:${COOLIFY_RESOURCE_UUID:-latest} restart: unless-stopped networks: - default @@ -55,6 +48,7 @@ services: APP_ROLE: gateway APP_MODE: prod APP_LOG_LEVEL: INFO + APP_GIT_SHA: ${SOURCE_COMMIT:-unknown} DATABASE_URL: ${DATABASE_URL} JWT_SECRET: ${JWT_SECRET} JWT_ACCESS_TTL_MIN: ${JWT_ACCESS_TTL_MIN:-15} @@ -73,8 +67,7 @@ services: start_period: 10s worker: - image: ${FLEET_IMAGE:-repo.rahamafresh.com/fleet-platform:latest} - pull_policy: always + image: fleet-platform:${COOLIFY_RESOURCE_UUID:-latest} restart: unless-stopped depends_on: gateway: @@ -86,6 +79,7 @@ services: APP_ROLE: worker APP_MODE: prod APP_LOG_LEVEL: INFO + APP_GIT_SHA: ${SOURCE_COMMIT:-unknown} DATABASE_URL: ${DATABASE_URL} JWT_SECRET: ${JWT_SECRET} TRACKSOLID_API_BASE_URL: ${TRACKSOLID_API_BASE_URL} @@ -99,8 +93,7 @@ services: start_period: 10s cron: - image: ${FLEET_IMAGE:-repo.rahamafresh.com/fleet-platform:latest} - pull_policy: always + image: fleet-platform:${COOLIFY_RESOURCE_UUID:-latest} restart: unless-stopped depends_on: gateway: @@ -112,6 +105,7 @@ services: APP_ROLE: cron APP_MODE: prod APP_LOG_LEVEL: INFO + APP_GIT_SHA: ${SOURCE_COMMIT:-unknown} DATABASE_URL: ${DATABASE_URL} JWT_SECRET: ${JWT_SECRET} TRACKSOLID_API_BASE_URL: ${TRACKSOLID_API_BASE_URL}