Fix container port
This commit is contained in:
+11
-10
@@ -1,8 +1,8 @@
|
||||
# Production / Dokploy
|
||||
# دامنهها را در UIی Dokploy به سرویسها ببندید:
|
||||
# client → https://wheel.montzar.ir
|
||||
# api → https://api.wheel.montzar.ir (port 3000)
|
||||
# admin → https://adm.wheel.montzar.ir
|
||||
# دامنهها را در UIی Dokploy به سرویسها ببندید (پورت کانتینر):
|
||||
# client → https://wheel.montzar.ir (80)
|
||||
# api → https://api.wheel.montzar.ir (3000)
|
||||
# admin → https://adm.wheel.montzar.ir (80)
|
||||
#
|
||||
# بیلد لوکال قبل از push:
|
||||
# pnpm install && pnpm run build:release
|
||||
@@ -44,8 +44,9 @@ services:
|
||||
context: .
|
||||
dockerfile: apps/api/Dockerfile
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- '3000:3000'
|
||||
# بدون ports روی هاست — Dokploy با دامنه به پورت داخلی 3000 وصل میشود
|
||||
expose:
|
||||
- '3000'
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 3000
|
||||
@@ -82,8 +83,8 @@ services:
|
||||
context: .
|
||||
dockerfile: apps/admin/Dockerfile
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- '8080:80'
|
||||
expose:
|
||||
- '80'
|
||||
depends_on:
|
||||
- api
|
||||
|
||||
@@ -92,8 +93,8 @@ services:
|
||||
context: .
|
||||
dockerfile: apps/client/Dockerfile
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- '8081:80'
|
||||
expose:
|
||||
- '80'
|
||||
depends_on:
|
||||
- api
|
||||
|
||||
|
||||
Reference in New Issue
Block a user