-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 1.17 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (45 loc) · 1.17 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
version: '3.8'
services:
db:
image: pgvector/pgvector:pg16
container_name: codex-postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: codex_db
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
backend:
build:
context: ./codex-backend
dockerfile: Dockerfile
container_name: codex-backend
ports:
- "8000:8000"
environment:
- DB_URL=postgresql+psycopg://postgres:postgres@db:5432/codex_db
- GROQ_API_KEY=${GROQ_API_KEY}
- JWT_SECRET=${JWT_SECRET:-codex-engine-dev-secret-key-1293847}
- ALLOWED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000,http://localhost:8000,http://127.0.0.1:8000
depends_on:
- db
volumes:
- ./codex-backend/data:/app/data
restart: unless-stopped
frontend:
build:
context: ./codex-frontend
dockerfile: Dockerfile
args:
- NEXT_PUBLIC_API_URL=http://localhost:8000
container_name: codex-frontend
ports:
- "3000:3000"
depends_on:
- backend
restart: unless-stopped
volumes:
postgres_data: