-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcompose.yaml
More file actions
60 lines (57 loc) · 1.43 KB
/
compose.yaml
File metadata and controls
60 lines (57 loc) · 1.43 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
services:
gcode-db:
image: agnohq/pgvector:18
container_name: gcode-db
environment:
- POSTGRES_USER=${DB_USER:-ai}
- POSTGRES_PASSWORD=${DB_PASS:-ai}
- POSTGRES_DB=${DB_DATABASE:-ai}
volumes:
- pgdata:/var/lib/postgresql
ports:
- "${DB_PORT:-5432}:5432"
networks:
- gcode
gcode-api:
build:
context: .
dockerfile: Dockerfile
image: ${IMAGE_NAME:-gcode}:${IMAGE_TAG:-latest}
container_name: gcode-api
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
ports:
- "8000:8000"
volumes:
# Hot-reload: mount source code
- .:/app
# Persistent workspace: where Gcode clones repos & creates projects
# This volume is user-scoped and survives container restarts
- workspace:/workspace
environment:
- RUNTIME_ENV=dev
- AGNO_DEBUG=True
- PYTHONPATH=/app
# Database
- DB_HOST=gcode-db
- DB_PORT=5432
- DB_USER=${DB_USER:-ai}
- DB_PASS=${DB_PASS:-ai}
- DB_DATABASE=${DB_DATABASE:-ai}
- WAIT_FOR_DB=True
- PRINT_ENV_ON_LOAD=True
# API keys
- OPENAI_API_KEY=${OPENAI_API_KEY}
- GITHUB_TOKEN=${GITHUB_TOKEN:-}
# Workspace config
- WORKSPACE_DIR=/workspace
depends_on:
- gcode-db
networks:
- gcode
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
gcode:
volumes:
pgdata:
workspace: