mirror of
https://github.com/arthur-pbty/imprimersudoku.git
synced 2026-06-03 15:07:28 +02:00
24 lines
593 B
YAML
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:
|