-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (73 loc) · 1.66 KB
/
docker-compose.yml
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
70
71
72
73
74
75
76
networks:
my_network:
driver: bridge
services:
ollama:
container_name: "ollama"
build:
context: .
dockerfile: Dockerfile.ollama
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 2
capabilities: [gpu]
ports:
- "11434:11434"
networks:
- my_network
ollamaserver:
container_name: "ollamaserver"
build:
context: .
dockerfile: Dockerfile
environment:
PINECONE_API_KEY: ${PINECONE_API_KEY}
PINECONE_INDEX_NAME: ${PINECONE_INDEX_NAME}
SUNO_API_URL: ${SUNO_API_URL}
OLLAMA_BASE_URL: ${OLLAMA_BASE_URL}
OLLAMA_MODEL: ${OLLAMA_MODEL}
VISUAL_MODEL: ${VISUAL_MODEL}
CORBADO_PROJECTID: ${CORBADO_PROJECTID}
CORBADO_API_KEY: ${CORBADO_API_KEY}
CORBADO_FRONTENDAPI: ${CORBADO_FRONTENDAPI}
CORBADO_BACKENDAPI: ${CORBADO_BACKENDAPI}
APP_PORT: ${APP_PORT}
APP_HOST: ${APP_HOST}
OLLAMA_HOST: ${OLLAMA_HOST}
SQLLITE_DATABASE_DIR: ${SQLLITE_DATABASE_DIR}
deploy:
resources:
limits:
cpus: '2'
memory: 10GB
reservations:
cpus: '2'
memory: 10GB
restart: always
depends_on:
- suno-api
- ollama
links:
- suno-api
- ollama
ports:
- "3000:3000"
networks:
- my_network
suno-api:
container_name: "suno-api"
build:
context: ./suno-api
dockerfile: Dockerfile.dev
environment:
SUNO_COOKIE: ${SUNO_COOKIE}
volumes:
- ./public:/app/public
restart: always
ports:
- "3001:3000"
networks:
- my_network