add docker files

This commit is contained in:
2025-11-08 21:50:43 +03:00
parent 2a75d46f84
commit b327d16260
4 changed files with 116 additions and 0 deletions

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

@@ -0,0 +1,26 @@
version: '3.8'
services:
dashboard-app-prod:
build:
context: .
dockerfile: Dockerfile.prod
ports:
- '3009:80'
environment:
- NODE_ENV=production
env_file:
- .env.prod
restart: unless-stopped
networks:
- dashboard-network
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost/health']
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
dashboard-network:
driver: bridge