Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (64 loc) · 1.62 KB
/
Copy pathdocker-compose.yml
File metadata and controls
69 lines (64 loc) · 1.62 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
services:
db:
# 🚨 CRITICAL UPDATE: Standard postgres:15 will crash when your retriever tries to run.
# You MUST use pgvector here to store the AI embeddings.
image: ankane/pgvector:latest
container_name: celerity_db
restart: always
environment:
POSTGRES_DB: agentopsynvectorbase
POSTGRES_USER: agent_user
POSTGRES_PASSWORD: strongpassword123
volumes:
# Isolated volume so it doesn't mix with your old repo's data
- celerity_pg_data:/var/lib/postgresql/data
ports:
# Keeping your mapped port to 5434 to avoid conflicts with default 5432 or old 5433
- "5434:5432"
redis:
image: redis:7
container_name: celerity_redis
ports:
# Mapped to 6380 so it doesn't conflict if your old Redis is still running on 6379
- "6380:6379"
backend:
build: ./backend
container_name: celerity_backend
volumes:
- ./backend:/app
ports:
- "8000:8000"
depends_on:
- db
- redis
env_file:
- ./backend/.env
extra_hosts:
- "host.docker.internal:host-gateway"
worker:
build: ./backend
container_name: celerity_worker
command: celery -A backend worker -l info
volumes:
- ./backend:/app
env_file:
- ./backend/.env
depends_on:
- db
- redis
extra_hosts:
- "host.docker.internal:host-gateway"
frontend:
build: ./frontend
container_name: celerity_frontend
volumes:
- ./frontend:/app
- /app/node_modules
ports:
- "3000:3000"
depends_on:
- backend
stdin_open: true
tty: true
volumes:
celerity_pg_data: