Align main compose with server .env env_file loading
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+5
-7
@@ -3,6 +3,8 @@ services:
|
|||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
container_name: fabric_trade_db
|
container_name: fabric_trade_db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: ${POSTGRES_USER:-fabric}
|
POSTGRES_USER: ${POSTGRES_USER:-fabric}
|
||||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-fabric123}
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-fabric123}
|
||||||
@@ -28,16 +30,12 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: postgresql://${POSTGRES_USER:-fabric}:${POSTGRES_PASSWORD:-fabric123}@postgres:5432/${POSTGRES_DB:-fabric_trade}?schema=public
|
DATABASE_URL: postgresql://${POSTGRES_USER:-fabric}:${POSTGRES_PASSWORD:-fabric123}@postgres:5432/${POSTGRES_DB:-fabric_trade}?schema=public
|
||||||
JWT_SECRET: ${JWT_SECRET:-fabric-trade-dev-secret-change-me}
|
PORT: ${PORT:-3000}
|
||||||
JWT_EXPIRES_IN: ${JWT_EXPIRES_IN:-7d}
|
|
||||||
PORT: 3000
|
|
||||||
MOCK_OTP_CODE: ${MOCK_OTP_CODE:-123456}
|
|
||||||
OTP_TTL_MINUTES: ${OTP_TTL_MINUTES:-5}
|
|
||||||
RUN_SEED: ${RUN_SEED:-false}
|
|
||||||
ports:
|
ports:
|
||||||
# فقط روی localhost سرور اکسپوز شود؛ LiteSpeed به همین پورت پروکسی میزند
|
|
||||||
- '127.0.0.1:${API_PORT:-3000}:3000'
|
- '127.0.0.1:${API_PORT:-3000}:3000'
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user