chore(compose): pin service images to build SHA, add MOCK_STORAGE, drop exposed db/redis ports
All checks were successful
build-and-release / build (catering-services) (push) Successful in 15s
build-and-release / build (employees) (push) Successful in 9s
build-and-release / build (companies) (push) Successful in 18s
build-and-release / build (customers) (push) Successful in 15s
build-and-release / build (fitness-trainers) (push) Successful in 7s
build-and-release / build (gateway) (push) Successful in 6s
build-and-release / build (cron) (push) Successful in 21s
build-and-release / build (developers) (push) Successful in 21s
build-and-release / build (graphic-designers) (push) Successful in 7s
build-and-release / build (job-seekers) (push) Successful in 6s
build-and-release / build (jobs) (push) Successful in 6s
build-and-release / build (payments) (push) Successful in 7s
build-and-release / build (social-media-managers) (push) Successful in 9s
build-and-release / build (makeup-artists) (push) Successful in 13s
build-and-release / build (ugc-content-creators) (push) Successful in 8s
build-and-release / build (tutors) (push) Successful in 10s
build-and-release / build (photographers) (push) Successful in 14s
build-and-release / build (users) (push) Successful in 7s
build-and-release / build (video-editors) (push) Successful in 6s
backend-integration-tests / ai-credits (push) Successful in 6s
build-and-release / build-db-migrate (push) Successful in 3m36s

- close direct host exposure of postgres:5432 and redis:6379 in dev compose
- pin all service images to a specific build SHA instead of floating :high-performance-latest
- enable MOCK_STORAGE for local dev across services
This commit is contained in:
Ashwin Kumar Sivakumar 2026-08-15 22:32:06 +05:30
parent f9718f85d0
commit 8f0505c36c

View file

@ -6,8 +6,6 @@ services:
POSTGRES_USER: nxtgauge
POSTGRES_PASSWORD: nxtgauge_dev
POSTGRES_DB: nxtgauge_db
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./scripts/seed.sql:/docker-entrypoint-initdb.d/seed.sql
@ -20,8 +18,6 @@ services:
redis:
image: redis:7-alpine
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redisdata:/data
command: redis-server --appendonly yes
@ -35,11 +31,12 @@ services:
gateway:
platform: linux/amd64
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-gateway:high-performance-latest
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-gateway:cd695514fe1b54b6b4b4505d75e4fe7318fb0198
ports:
- "9100:9100"
environment:
PORT: "9100"
MOCK_STORAGE: "true"
DATABASE_URL: postgresql://nxtgauge:nxtgauge_dev@postgres:5432/nxtgauge_db
REDIS_URL: redis://redis:6379
JWT_SECRET: local_dev_jwt_secret
@ -107,9 +104,10 @@ services:
users:
platform: linux/amd64
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-users:high-performance-latest
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-users:cd695514fe1b54b6b4b4505d75e4fe7318fb0198
environment:
PORT: "9101"
MOCK_STORAGE: "true"
DATABASE_URL: postgresql://nxtgauge:nxtgauge_dev@postgres:5432/nxtgauge_db
REDIS_URL: redis://redis:6379
JWT_SECRET: local_dev_jwt_secret
@ -121,9 +119,10 @@ services:
companies:
platform: linux/amd64
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-companies:high-performance-latest
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-companies:cd695514fe1b54b6b4b4505d75e4fe7318fb0198
environment:
PORT: "9102"
MOCK_STORAGE: "true"
DATABASE_URL: postgresql://nxtgauge:nxtgauge_dev@postgres:5432/nxtgauge_db
REDIS_URL: redis://redis:6379
JWT_SECRET: local_dev_jwt_secret
@ -135,9 +134,10 @@ services:
jobs:
platform: linux/amd64
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-jobs:high-performance-latest
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-jobs:cd695514fe1b54b6b4b4505d75e4fe7318fb0198
environment:
PORT: "9103"
MOCK_STORAGE: "true"
DATABASE_URL: postgresql://nxtgauge:nxtgauge_dev@postgres:5432/nxtgauge_db
depends_on:
postgres:
@ -145,9 +145,10 @@ services:
job-seekers:
platform: linux/amd64
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-job-seekers:high-performance-latest
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-job-seekers:cd695514fe1b54b6b4b4505d75e4fe7318fb0198
environment:
PORT: "9104"
MOCK_STORAGE: "true"
DATABASE_URL: postgresql://nxtgauge:nxtgauge_dev@postgres:5432/nxtgauge_db
REDIS_URL: redis://redis:6379
JWT_SECRET: local_dev_jwt_secret
@ -159,9 +160,10 @@ services:
customers:
platform: linux/amd64
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-customers:high-performance-latest
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-customers:cd695514fe1b54b6b4b4505d75e4fe7318fb0198
environment:
PORT: "9105"
MOCK_STORAGE: "true"
DATABASE_URL: postgresql://nxtgauge:nxtgauge_dev@postgres:5432/nxtgauge_db
REDIS_URL: redis://redis:6379
JWT_SECRET: local_dev_jwt_secret
@ -173,9 +175,10 @@ services:
employees:
platform: linux/amd64
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-employees:high-performance-latest
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-employees:cd695514fe1b54b6b4b4505d75e4fe7318fb0198
environment:
PORT: "9106"
MOCK_STORAGE: "true"
DATABASE_URL: postgresql://nxtgauge:nxtgauge_dev@postgres:5432/nxtgauge_db
REDIS_URL: redis://redis:6379
JWT_SECRET: local_dev_jwt_secret
@ -189,9 +192,10 @@ services:
photographers:
platform: linux/amd64
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-photographers:high-performance-latest
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-photographers:cd695514fe1b54b6b4b4505d75e4fe7318fb0198
environment:
PORT: "9107"
MOCK_STORAGE: "true"
DATABASE_URL: postgresql://nxtgauge:nxtgauge_dev@postgres:5432/nxtgauge_db
REDIS_URL: redis://redis:6379
JWT_SECRET: local_dev_jwt_secret
@ -203,9 +207,10 @@ services:
tutors:
platform: linux/amd64
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-tutors:high-performance-latest
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-tutors:cd695514fe1b54b6b4b4505d75e4fe7318fb0198
environment:
PORT: "9108"
MOCK_STORAGE: "true"
DATABASE_URL: postgresql://nxtgauge:nxtgauge_dev@postgres:5432/nxtgauge_db
REDIS_URL: redis://redis:6379
JWT_SECRET: local_dev_jwt_secret
@ -217,9 +222,10 @@ services:
makeup-artists:
platform: linux/amd64
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-makeup-artists:high-performance-latest
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-makeup-artists:cd695514fe1b54b6b4b4505d75e4fe7318fb0198
environment:
PORT: "9109"
MOCK_STORAGE: "true"
DATABASE_URL: postgresql://nxtgauge:nxtgauge_dev@postgres:5432/nxtgauge_db
REDIS_URL: redis://redis:6379
JWT_SECRET: local_dev_jwt_secret
@ -231,9 +237,10 @@ services:
developers:
platform: linux/amd64
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-developers:high-performance-latest
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-developers:cd695514fe1b54b6b4b4505d75e4fe7318fb0198
environment:
PORT: "9110"
MOCK_STORAGE: "true"
DATABASE_URL: postgresql://nxtgauge:nxtgauge_dev@postgres:5432/nxtgauge_db
REDIS_URL: redis://redis:6379
JWT_SECRET: local_dev_jwt_secret
@ -245,9 +252,10 @@ services:
video-editors:
platform: linux/amd64
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-video-editors:high-performance-latest
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-video-editors:cd695514fe1b54b6b4b4505d75e4fe7318fb0198
environment:
PORT: "9111"
MOCK_STORAGE: "true"
DATABASE_URL: postgresql://nxtgauge:nxtgauge_dev@postgres:5432/nxtgauge_db
REDIS_URL: redis://redis:6379
JWT_SECRET: local_dev_jwt_secret
@ -259,9 +267,10 @@ services:
graphic-designers:
platform: linux/amd64
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-graphic-designers:high-performance-latest
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-graphic-designers:cd695514fe1b54b6b4b4505d75e4fe7318fb0198
environment:
PORT: "9112"
MOCK_STORAGE: "true"
DATABASE_URL: postgresql://nxtgauge:nxtgauge_dev@postgres:5432/nxtgauge_db
REDIS_URL: redis://redis:6379
JWT_SECRET: local_dev_jwt_secret
@ -273,9 +282,10 @@ services:
social-media-managers:
platform: linux/amd64
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-social-media-managers:high-performance-latest
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-social-media-managers:cd695514fe1b54b6b4b4505d75e4fe7318fb0198
environment:
PORT: "9113"
MOCK_STORAGE: "true"
DATABASE_URL: postgresql://nxtgauge:nxtgauge_dev@postgres:5432/nxtgauge_db
REDIS_URL: redis://redis:6379
JWT_SECRET: local_dev_jwt_secret
@ -287,9 +297,10 @@ services:
fitness-trainers:
platform: linux/amd64
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-fitness-trainers:high-performance-latest
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-fitness-trainers:cd695514fe1b54b6b4b4505d75e4fe7318fb0198
environment:
PORT: "9114"
MOCK_STORAGE: "true"
DATABASE_URL: postgresql://nxtgauge:nxtgauge_dev@postgres:5432/nxtgauge_db
REDIS_URL: redis://redis:6379
JWT_SECRET: local_dev_jwt_secret
@ -301,9 +312,10 @@ services:
catering-services:
platform: linux/amd64
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-catering-services:high-performance-latest
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-catering-services:cd695514fe1b54b6b4b4505d75e4fe7318fb0198
environment:
PORT: "9115"
MOCK_STORAGE: "true"
DATABASE_URL: postgresql://nxtgauge:nxtgauge_dev@postgres:5432/nxtgauge_db
REDIS_URL: redis://redis:6379
JWT_SECRET: local_dev_jwt_secret
@ -317,9 +329,10 @@ services:
payments:
platform: linux/amd64
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-payments:high-performance-latest
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-payments:cd695514fe1b54b6b4b4505d75e4fe7318fb0198
environment:
PORT: "9116"
MOCK_STORAGE: "true"
DATABASE_URL: postgresql://nxtgauge:nxtgauge_dev@postgres:5432/nxtgauge_db
REDIS_URL: redis://redis:6379
JWT_SECRET: local_dev_jwt_secret
@ -333,9 +346,10 @@ services:
ugc-content-creators:
platform: linux/amd64
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-ugc-content-creators:high-performance-latest
image: ci.nxtgauge.com/ashwin/nxtgauge-rust-ugc-content-creators:cd695514fe1b54b6b4b4505d75e4fe7318fb0198
environment:
PORT: "9117"
MOCK_STORAGE: "true"
DATABASE_URL: postgresql://nxtgauge:nxtgauge_dev@postgres:5432/nxtgauge_db
REDIS_URL: redis://redis:6379
JWT_SECRET: local_dev_jwt_secret