-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.prod.yml
More file actions
73 lines (69 loc) · 1.76 KB
/
Copy pathcompose.prod.yml
File metadata and controls
73 lines (69 loc) · 1.76 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
71
72
73
name: goods-go-app-prod
services:
app:
image: goods-go-prod
build:
context: .
dockerfile: prod.Dockerfile
args:
NEXT_PUBLIC_SUPABASE_URL: ${NEXT_PUBLIC_SUPABASE_URL}
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY: ${NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY}
environment:
NODE_ENV: production
NEXT_PUBLIC_SUPABASE_URL: ${NEXT_PUBLIC_SUPABASE_URL:?required}
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY: ${NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY:?required}
SUPABASE_INTERNAL_URL: http://kong:8000
SUPABASE_HEALTH_URL: http://auth:9999/health
init: true
restart: unless-stopped
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
healthcheck:
test:
[
"CMD",
"node",
"-e",
"fetch('http://127.0.0.1:3000/api/health').then(r=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))",
]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
- prod
cloudflared:
image: cloudflare/cloudflared:2026.6.0
command: tunnel --no-autoupdate run --token-file /run/secrets/cloudflare_tunnel_token
restart: unless-stopped
read_only: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
secrets:
- cloudflare_tunnel_token
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
depends_on:
app:
condition: service_healthy
networks:
- prod
networks:
prod:
external: true
name: goods-go-prod
secrets:
cloudflare_tunnel_token:
file: ${TUNNEL_TOKEN_FILE:-./secrets/cloudflare-tunnel-token}