-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (60 loc) · 1.43 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (60 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
61
62
63
64
services:
qdrant:
image: qdrant/qdrant:latest
container_name: agora-qdrant
ports:
- "6333:6333" # HTTP API
- "6334:6334" # gRPC
volumes:
- qdrant_storage:/qdrant/storage
environment:
- QDRANT__SERVICE__GRPC_PORT=6334
restart: unless-stopped
networks:
- agora-network
backend:
build:
context: .
dockerfile: backend/Dockerfile
container_name: agora-backend
env_file:
- .env
environment:
# Defaults are overridden by .env if present
- QDRANT_URL=http://qdrant:6333
- HOST=0.0.0.0
- PORT=8000
- LOG_LEVEL=${LOG_LEVEL:-INFO}
ports:
- "8000:8000"
volumes:
- ./backend:/app
depends_on:
- qdrant
restart: unless-stopped
networks:
- agora-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
NEXT_PUBLIC_WS_URL: ${NEXT_PUBLIC_WS_URL:-http://localhost:8000}
NEXT_PUBLIC_API_URL: ${NEXT_PUBLIC_API_URL:-http://localhost:8000}
container_name: agora-frontend
environment:
- NEXT_PUBLIC_WS_URL=${NEXT_PUBLIC_WS_URL:-http://localhost:8000}
- NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL:-http://localhost:8000}
ports:
- "3000:3000"
depends_on:
- backend
restart: unless-stopped
networks:
- agora-network
networks:
agora-network:
driver: bridge
volumes:
qdrant_storage:
driver: local