add Docker configuration for containerization

This commit is contained in:
ahmadrezabd
2025-11-19 18:16:17 +03:30
parent 948238b6d9
commit db5fc8f636
5 changed files with 197 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: pwa-react-app
ports:
- "3000:80"
restart: unless-stopped
environment:
- NODE_ENV=production
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost/health", "||", "exit", "1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s