Payannameh-Mozakhraf/docker-compose.yml

21 lines
439 B
YAML

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