Files
imprimersudoku/docker-compose.yml
Puechberty Arthur 2de4261631 first commit
2026-03-30 23:26:19 +02:00

24 lines
593 B
YAML

services:
sudoku:
image: node:22-alpine
container_name: sudoku-app
working_dir: /app
volumes:
- .:/app
- node_modules:/app/node_modules
restart: unless-stopped
ports:
- "3017:3000"
environment:
- NEXT_TELEMETRY_DISABLED=1
command: sh -c "rm -rf types .next && npm ci && npm run build && NODE_ENV=production npm start"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/"]
interval: 30s
timeout: 5s
retries: 3
start_period: 60s
volumes:
node_modules: