Compare commits

..

No commits in common. "6dc63e072019aaf292f54c54eeff7d7088d10b23" and "478300611f7a077ab4309c14d24dcda08ecf393d" have entirely different histories.

View file

@ -11,12 +11,8 @@
# Traefik labels automatically; don't add them here. # Traefik labels automatically; don't add them here.
# - All env values live in Coolify's Environment Variables panel. # - All env values live in Coolify's Environment Variables panel.
# Compose only references them with ${VAR_NAME}. # Compose only references them with ${VAR_NAME}.
# - All three services PULL the same CI-built image from the Forgejo # - Coolify will clone this repo, build the image once, and re-use it
# registry (repo.rahamafresh.com/fleet-platform). Coolify no longer builds # across all three services (saves disk + build time).
# 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` network is created by Coolify; we attach so containers can # - `coolify` network is created by Coolify; we attach so containers can
# reach the TimescaleDB by service name. # reach the TimescaleDB by service name.
@ -41,11 +37,8 @@ networks:
services: services:
gateway: gateway:
# Pull the CI-built image (Forgejo build-push bakes APP_GIT_SHA=github.sha) build: .
# instead of building from source, so /health reports the real commit. image: fleet-platform:${COOLIFY_RESOURCE_UUID:-latest}
# Override FLEET_IMAGE in Coolify to pin/rollback to a specific :<sha>.
image: ${FLEET_IMAGE:-repo.rahamafresh.com/fleet-platform:latest}
pull_policy: always
restart: unless-stopped restart: unless-stopped
networks: networks:
- default - default
@ -55,6 +48,7 @@ services:
APP_ROLE: gateway APP_ROLE: gateway
APP_MODE: prod APP_MODE: prod
APP_LOG_LEVEL: INFO APP_LOG_LEVEL: INFO
APP_GIT_SHA: ${SOURCE_COMMIT:-unknown}
DATABASE_URL: ${DATABASE_URL} DATABASE_URL: ${DATABASE_URL}
JWT_SECRET: ${JWT_SECRET} JWT_SECRET: ${JWT_SECRET}
JWT_ACCESS_TTL_MIN: ${JWT_ACCESS_TTL_MIN:-15} JWT_ACCESS_TTL_MIN: ${JWT_ACCESS_TTL_MIN:-15}
@ -73,8 +67,7 @@ services:
start_period: 10s start_period: 10s
worker: worker:
image: ${FLEET_IMAGE:-repo.rahamafresh.com/fleet-platform:latest} image: fleet-platform:${COOLIFY_RESOURCE_UUID:-latest}
pull_policy: always
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
gateway: gateway:
@ -86,6 +79,7 @@ services:
APP_ROLE: worker APP_ROLE: worker
APP_MODE: prod APP_MODE: prod
APP_LOG_LEVEL: INFO APP_LOG_LEVEL: INFO
APP_GIT_SHA: ${SOURCE_COMMIT:-unknown}
DATABASE_URL: ${DATABASE_URL} DATABASE_URL: ${DATABASE_URL}
JWT_SECRET: ${JWT_SECRET} JWT_SECRET: ${JWT_SECRET}
TRACKSOLID_API_BASE_URL: ${TRACKSOLID_API_BASE_URL} TRACKSOLID_API_BASE_URL: ${TRACKSOLID_API_BASE_URL}
@ -99,8 +93,7 @@ services:
start_period: 10s start_period: 10s
cron: cron:
image: ${FLEET_IMAGE:-repo.rahamafresh.com/fleet-platform:latest} image: fleet-platform:${COOLIFY_RESOURCE_UUID:-latest}
pull_policy: always
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
gateway: gateway:
@ -112,6 +105,7 @@ services:
APP_ROLE: cron APP_ROLE: cron
APP_MODE: prod APP_MODE: prod
APP_LOG_LEVEL: INFO APP_LOG_LEVEL: INFO
APP_GIT_SHA: ${SOURCE_COMMIT:-unknown}
DATABASE_URL: ${DATABASE_URL} DATABASE_URL: ${DATABASE_URL}
JWT_SECRET: ${JWT_SECRET} JWT_SECRET: ${JWT_SECRET}
TRACKSOLID_API_BASE_URL: ${TRACKSOLID_API_BASE_URL} TRACKSOLID_API_BASE_URL: ${TRACKSOLID_API_BASE_URL}