This repository was archived by the owner on Oct 22, 2026. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathcompose.yaml
More file actions
160 lines (155 loc) · 4.9 KB
/
Copy pathcompose.yaml
File metadata and controls
160 lines (155 loc) · 4.9 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
services:
# ── Convex Backend ────────────────────────────────────────────────────
convex-backend:
container_name: wealthflow-convex-backend
image: ghcr.io/get-convex/convex-backend:latest
restart: unless-stopped
stop_grace_period: 10s
stop_signal: SIGINT
expose:
- '3210'
- '3211'
volumes:
- wealthflow-convex-data:/convex/data
networks:
- wealthflow-net
- cloudflared-net
environment:
- CONVEX_CLOUD_ORIGIN=${CONVEX_CLOUD_ORIGIN:-http://127.0.0.1:${CONVEX_PORT:-3210}}
- CONVEX_SITE_ORIGIN=${CONVEX_SITE_ORIGIN:-http://127.0.0.1:${CONVEX_SITE_PORT:-3211}}
- INSTANCE_SECRET
- RUST_LOG=${RUST_LOG:-info}
- DOCUMENT_RETENTION_DELAY=${DOCUMENT_RETENTION_DELAY:-172800}
# Concurrency limits
- APPLICATION_MAX_CONCURRENT_MUTATIONS=${APPLICATION_MAX_CONCURRENT_MUTATIONS:-16}
- APPLICATION_MAX_CONCURRENT_QUERIES=${APPLICATION_MAX_CONCURRENT_QUERIES:-16}
- APPLICATION_MAX_CONCURRENT_NODE_ACTIONS=${APPLICATION_MAX_CONCURRENT_NODE_ACTIONS:-16}
- APPLICATION_MAX_CONCURRENT_V8_ACTIONS=${APPLICATION_MAX_CONCURRENT_V8_ACTIONS:-16}
# Optional — external database (SQLite by default)
- POSTGRES_URL
- MYSQL_URL
# Optional — S3-compatible storage
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_REGION
- S3_ENDPOINT_URL
- S3_STORAGE_FILES_BUCKET
- S3_STORAGE_MODULES_BUCKET
- S3_STORAGE_SEARCH_BUCKET
- S3_STORAGE_EXPORTS_BUCKET
- S3_STORAGE_SNAPSHOT_IMPORTS_BUCKET
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3210/version']
interval: 5s
timeout: 3s
start_period: 10s
retries: 5
logging:
driver: json-file
options:
max-size: '10m'
max-file: '3'
deploy:
resources:
limits:
memory: 1g
cpus: '1.0'
# ── Convex Dashboard ──────────────────────────────────────────────────
convex-dashboard:
container_name: wealthflow-convex-dashboard
image: ghcr.io/get-convex/convex-dashboard:latest
restart: unless-stopped
stop_grace_period: 10s
expose:
- '6791'
networks:
- wealthflow-net
- cloudflared-net
environment:
- NEXT_PUBLIC_DEPLOYMENT_URL=${NEXT_PUBLIC_DEPLOYMENT_URL:-http://127.0.0.1:${CONVEX_PORT:-3210}}
depends_on:
convex-backend:
condition: service_healthy
logging:
driver: json-file
options:
max-size: '10m'
max-file: '3'
deploy:
resources:
limits:
memory: 512m
cpus: '0.5'
# ── WealthFlow Dashboard ──────────────────────────────────────────────
dashboard:
container_name: wealthflow-dashboard
build:
context: .
dockerfile: apps/dashboard/Dockerfile
args:
VITE_CONVEX_URL: ${VITE_CONVEX_URL:-http://localhost:3210}
VITE_CONVEX_SITE_URL: ${VITE_CONVEX_SITE_URL:-http://localhost:3211}
restart: unless-stopped
expose:
- '8080'
networks:
- wealthflow-net
- cloudflared-net
read_only: true
tmpfs:
- /tmp:noexec,nosuid,size=10m
security_opt:
- no-new-privileges:true
depends_on:
convex-backend:
condition: service_healthy
logging:
driver: json-file
options:
max-size: '5m'
max-file: '3'
deploy:
resources:
limits:
memory: 128m
cpus: '0.25'
# ── WealthFlow Landing ────────────────────────────────────────────────
landing:
container_name: wealthflow-landing
build:
context: .
dockerfile: apps/landing/Dockerfile
args:
SITE_URL: ${SITE_URL:-http://localhost:4321}
PUBLIC_DASHBOARD_URL: ${PUBLIC_DASHBOARD_URL:-http://localhost:8080}
PUBLIC_CONTACT_EMAIL: ${PUBLIC_CONTACT_EMAIL:-hello@wealthflow.app}
PUBLIC_PLAUSIBLE_DOMAIN: ${PUBLIC_PLAUSIBLE_DOMAIN:-}
PUBLIC_PLAUSIBLE_SCRIPT_URL: ${PUBLIC_PLAUSIBLE_SCRIPT_URL:-https://plausible.io/js/script.js}
restart: unless-stopped
expose:
- '4321'
networks:
- wealthflow-net
- cloudflared-net
read_only: true
tmpfs:
- /tmp:noexec,nosuid,size=10m
security_opt:
- no-new-privileges:true
logging:
driver: json-file
options:
max-size: '5m'
max-file: '3'
deploy:
resources:
limits:
memory: 64m
cpus: '0.25'
networks:
wealthflow-net:
driver: bridge
cloudflared-net:
external: true
volumes:
wealthflow-convex-data: