first commit

This commit is contained in:
2026-07-02 14:49:52 +05:30
parent e2cf8f803b
commit 473dc52b92
5 changed files with 105 additions and 13 deletions
+36
View File
@@ -0,0 +1,36 @@
services:
web:
build:
context: .
dockerfile: Dockerfile
image: rotary-club-vellore:latest
container_name: rotary-club-vellore
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NODE_ENV=production
# healthcheck: hits the site root to confirm the container is actually serving
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
# Optional: run with hot-reload for local development instead of the prod image.
# Usage: docker compose --profile dev up web-dev
web-dev:
profiles: ["dev"]
image: node:20-alpine
working_dir: /app
command: sh -c "npm ci && npm run dev"
ports:
- "3000:3000"
environment:
- NODE_ENV=development
- NEXT_TELEMETRY_DISABLED=1
volumes:
- .:/app
- /app/node_modules
- /app/.next