-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-sample.yml
More file actions
70 lines (62 loc) · 2.02 KB
/
docker-compose-sample.yml
File metadata and controls
70 lines (62 loc) · 2.02 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
67
68
69
70
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8090:8090" # Backend API
- "3000:80" # Frontend HTTP
- "443:443" # Frontend HTTPS
image: jet-admin-image
container_name: jet-admin-container
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8090/api/v1/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 90s
volumes:
- jet-admin-logs:/apps/backend/logs
- ssl-certs:/etc/nginx/ssl
environment:
# Server Configuration
- NODE_ENV=production
- VITE_FIREBASE_API_KEY=
- VITE_FIREBASE_AUTH_DOMAIN=
- VITE_FIREBASE_PROJECT_ID=
- VITE_FIREBASE_STORAGE_BUCKET=
- VITE_FIREBASE_MESSAGING_SENDER_ID=
- VITE_FIREBASE_APP_ID=
- VITE_FIREBASE_MEASUREMENT_ID=
- VITE_SUPABASE_URL=
- VITE_SUPABASE_KEY=
- PORT=8090
- EXPRESS_REQUEST_SIZE_LIMIT=5mb
# Database Configuration
# DATABASE_URL is required - set your PostgreSQL connection string
- DATABASE_URL=
# SEED_DATABASE: Set to 'true' ONLY for the first container to run migrations and seed data
# For additional containers connecting to the same database, keep this as 'false'
- SEED_DATABASE=false
# CORS Settings
- CORS_WHITELIST=http://localhost:3000,http://127.0.0.1:3000,http://localhost:5173,http://127.0.0.1:3001,http://localhost:3001,https://localhost,https://localhost:443
# Logging Configuration
- SYSLOG_HOST=127.0.0.1
- SYSLOG_PORT=514
- SYSLOG_PROTOCOL=udp4
- SYSLOG_LEVEL=warning
- LOG_LEVEL=info
- LOG_RETENTION=7
- LOG_FILE_SIZE=1
# Node Identification
- NODE_ID=prod_node_1
# AI configuration
- GEMINI_API_KEY=
# SSL Configuration (optional - for custom domain)
- SSL_CERT_CN=localhost
volumes:
jet-admin-logs:
driver: local
ssl-certs:
driver: local