-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
61 lines (57 loc) · 1.1 KB
/
docker-compose.yaml
File metadata and controls
61 lines (57 loc) · 1.1 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
services:
backend:
depends_on:
- surrealdb
- redis
- ollama
build:
context: .
dockerfile: ./build/package/dev/backend.dev.dockerfile
volumes:
- ./:/app
ports:
- "8090:8090"
environment:
- GO_ENV=development
networks:
- app-network
ollama:
build:
context: .
dockerfile: ./build/package/ollama.dockerfile
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
ports:
- "11434:11434"
environment:
- OLLAMA_KEEP_ALIVE=6m
networks:
- app-network
surrealdb:
build:
context: .
dockerfile: ./build/package/surrealdb.dockerfile
ports:
- "8000:8000"
volumes:
- ./schemas:/docker-entrypoint-initdb.d
networks:
- app-network
redis:
build:
context: .
dockerfile: ./build/package/redis.dockerfile
ports:
- "6379:6379"
env_file:
- ./.env
networks:
- app-network
networks:
app-network:
driver: bridge