-
Notifications
You must be signed in to change notification settings - Fork 789
/
Copy pathdocker-compose.yml
53 lines (49 loc) · 1.36 KB
/
docker-compose.yml
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
version: '3.8'
services:
frontend:
build: .
ports:
- '5173:5173'
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
environment:
- VITE_CONVEX_URL=http://127.0.0.1:${PORT:-3210}
networks:
- ai-town-network
backend:
image: ghcr.io/get-convex/convex-backend:latest
ports:
- '${PORT:-3210}:3210'
- '${SITE_PROXY_PORT:-3211}:3211'
- '${OLLAMA_PORT:-11434}:11434'
volumes:
- data:/convex/data
environment:
- INSTANCE_NAME=${INSTANCE_NAME:-}
- INSTANCE_SECRET=${INSTANCE_SECRET:-}
- CONVEX_RELEASE_VERSION_DEV=${CONVEX_RELEASE_VERSION_DEV:-}
- ACTIONS_USER_TIMEOUT_SECS=${ACTIONS_USER_TIMEOUT_SECS:-}
- CONVEX_CLOUD_ORIGIN=${URL_BASE:-http://127.0.0.1}:${PORT:-3210}
- CONVEX_SITE_ORIGIN=${URL_BASE:-http://127.0.0.1}:${SITE_PROXY_PORT:-3211}
- DATABASE_URL=${DATABASE_URL:-}
healthcheck:
test: curl -f http://localhost:3210/version
interval: 5s
start_period: 5s
networks:
- ai-town-network
dashboard:
image: ghcr.io/get-convex/convex-dashboard:latest
ports:
- '${DASHBOARD_PORT:-6791}:6791'
environment:
- NEXT_PUBLIC_DEPLOYMENT_URL=http://127.0.0.1:${PORT:-3210}
depends_on:
backend:
condition: service_healthy
volumes:
data:
networks:
ai-town-network:
driver: bridge