feat(deploy): add production runtime foundation

This commit is contained in:
2026-03-06 09:48:36 +00:00
parent f4ff058a8f
commit b8d2693c67
6 changed files with 155 additions and 6 deletions

23
docker-compose.prod.yml Normal file
View File

@@ -0,0 +1,23 @@
services:
web:
container_name: plesk-agency-portal
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
env_file:
- .env
ports:
- "3000:3000"
healthcheck:
test:
[
"CMD",
"node",
"-e",
"fetch('http://127.0.0.1:3000/api/health').then((r)=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))",
]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s