This repository was archived by the owner on Nov 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
66 lines (55 loc) · 1.78 KB
/
docker-compose.yml
File metadata and controls
66 lines (55 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '3.8'
services:
# GovLink Next.js Application
govlink-app:
build:
context: .
dockerfile: Dockerfile
args:
- SKIP_DB_VALIDATION=true
container_name: govlink-app
restart: unless-stopped
environment:
# Database (MongoDB Atlas)
MONGODB_URI: ${MONGODB_URI}
# JWT Secrets
JWT_SECRET: ${JWT_SECRET}
JWT_REFRESH_SECRET: ${JWT_REFRESH_SECRET}
# Token Expiration
ACCESS_TOKEN_EXPIRY: ${ACCESS_TOKEN_EXPIRY:-15m}
REFRESH_TOKEN_EXPIRY: ${REFRESH_TOKEN_EXPIRY:-7d}
EMAIL_TOKEN_EXPIRY: ${EMAIL_TOKEN_EXPIRY:-24h}
RESET_TOKEN_EXPIRY: ${RESET_TOKEN_EXPIRY:-1h}
# Cloudflare R2 Storage
R2_ACCESS_KEY_ID: ${R2_ACCESS_KEY_ID}
R2_SECRET_ACCESS_KEY: ${R2_SECRET_ACCESS_KEY}
R2_BUCKET_NAME: ${R2_BUCKET_NAME:-govlink}
# OpenAI Configuration
OPENAI_API_KEY: ${OPENAI_API_KEY}
OPENAI_MODEL: ${OPENAI_MODEL:-gpt-4}
# Tavily Search API
TAVILY_API_KEY: ${TAVILY_API_KEY}
# Email Configuration
SMTP_HOST: ${SMTP_HOST:-}
SMTP_PORT: ${SMTP_PORT:-587}
SMTP_USER: ${SMTP_USER:-}
SMTP_PASS: ${SMTP_PASS:-}
SMTP_FROM: ${SMTP_FROM:-noreply@govlink.lk}
# Email Service (Alternative naming)
MAIL_ID: ${MAIL_ID:-}
MAIL_PW: ${MAIL_PW:-}
GOV_SERVICE_NAME: ${GOV_SERVICE_NAME:-GovLink Sri Lanka}
# Application Settings
NODE_ENV: production
NEXT_TELEMETRY_DISABLED: 1
PORT: 3000
# Security
BCRYPT_SALT_ROUNDS: ${BCRYPT_SALT_ROUNDS:-12}
ports:
- "3000:3000"
healthcheck:
test: curl -f http://localhost:3000/api/health || exit 1
interval: 30s
timeout: 10s
retries: 3
start_period: 60s