Muluhabt ERP modules

This commit is contained in:
Mulu Mehari
2026-08-25 00:11:39 +03:00
parent 5c2100e76d
commit 70171fa9d8
441 changed files with 68587 additions and 214 deletions

View File

@@ -5,22 +5,38 @@ networks:
driver: bridge
volumes:
postgres-freight-data:
postgres-data:
redis-data:
services:
postgres-freight:
# ONE database for the whole platform. Freight, passenger, IAM and payment are
# schemas inside it, not separate databases — this mirrors production, where the
# Smart Office database holds the `freight` schema alongside the rest.
#
# Migrated from the previous `postgres-freight` service (port 5433, db
# `edr_freight`) plus a second server on 5544 for passenger. The volume is
# renamed, so the first `up` runs initdb against an empty data directory and
# applies initdb/01-schemas.sql. Existing 5433 data is NOT carried over
# automatically — see the consolidation runbook in DEPLOYMENT.md.
postgres:
image: postgres:17-alpine
container_name: edr-postgres-freight
container_name: edr-postgres
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: edr_freight
POSTGRES_USER: edr
POSTGRES_PASSWORD: edr_secret
POSTGRES_DB: edr_database
ports:
- "5433:5432"
- "5432:5432"
volumes:
- postgres-freight-data:/var/lib/postgresql/data
- postgres-data:/var/lib/postgresql/data
# Schema bootstrap. initdb only sources this on an empty volume.
- ./initdb:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready -U edr -d edr_database"]
interval: 5s
timeout: 5s
retries: 20
networks:
- edr-network
@@ -33,4 +49,4 @@ services:
volumes:
- redis-data:/data
networks:
- edr-network
- edr-network