-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (36 loc) · 1.48 KB
/
docker-compose.yml
File metadata and controls
37 lines (36 loc) · 1.48 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
services:
app:
build:
context: .
dockerfile: Dockerfile
ports: [] # Remove public port exposure to prevent direct access
environment:
- NODE_ENV=production
- PORT=3001
- NEXT_PUBLIC_SUPABASE_URL=${NEXT_PUBLIC_SUPABASE_URL:-https://placeholder.supabase.co}
- NEXT_PUBLIC_SUPABASE_ANON_KEY=${NEXT_PUBLIC_SUPABASE_ANON_KEY:-your_supabase_anon_key}
- NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=${NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY:-pk_test_your_publishable_key}
- STRIPE_SECRET_KEY=${STRIPE_SECRET_KEY:-sk_test_your_secret_key}
- OPENAI_API_KEY=${OPENAI_API_KEY:-your-openai-api-key}
- NEXT_PUBLIC_MAKE_COM_WEBHOOK_URL=${NEXT_PUBLIC_MAKE_COM_WEBHOOK_URL:-https://hooks.make.com/webhooks/your-webhook-id}
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://0.0.0.0:3001/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
- ./logs:/app/logs
networks:
- traefik-net
labels:
- traefik.enable=true
- traefik.http.routers.cyberworldbuilders.rule=Host(`cyberworldbuilders.dev`)
- traefik.http.routers.cyberworldbuilders.entrypoints=websecure
- traefik.http.routers.cyberworldbuilders.tls=true
- traefik.http.routers.cyberworldbuilders.tls.certresolver=letsencrypt
- traefik.http.services.cyberworldbuilders.loadbalancer.server.port=3001
networks:
traefik-net:
external: true