-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 999 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 999 Bytes
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
services:
dolt:
image: dolthub/dolt-sql-server:latest
ports:
- "3307:3306"
volumes:
- dolt-data:/var/lib/dolt
- ./server/migrations/dolt:/docker-entrypoint-initdb.d
environment:
DOLT_ROOT_PASSWORD: ""
DOLT_ROOT_HOST: "%"
DOLT_DATABASE: brunch
healthcheck:
test: ["CMD", "dolt", "--host", "127.0.0.1", "--port", "3306", "--no-tls", "sql", "-q", "SELECT 1"]
interval: 5s
timeout: 3s
retries: 10
app:
build: .
ports:
- "3001:3001"
depends_on:
dolt:
condition: service_healthy
environment:
DOLT_HOST: dolt
DOLT_PORT: 3306 # internal Docker network, not the host-mapped port
DOLT_USER: root
DOLT_PASSWORD: ""
DOLT_DATABASE: brunch
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
OPENAI_API_KEY: ${OPENAI_API_KEY:-}
GOOGLE_GENERATIVE_AI_API_KEY: ${GOOGLE_GENERATIVE_AI_API_KEY:-}
OPENCODE_URL: ${OPENCODE_URL:-}
volumes:
dolt-data: