-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (50 loc) · 967 Bytes
/
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
services:
llm:
container_name: llm01
image: ollama/ollama:0.1.39-rocm
ports:
- 11434:11434
volumes:
- ./ollama:/root/.ollama:z
hostname: llm
platform: linux/amd64
networks:
my_network:
environment:
OLLAMA_HOST: 0.0.0.0
extra_hosts:
- "host.docker.internal:host-gateway"
logging:
driver: "none"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
app:
container_name: app01
image: python:3.12.3-alpine
volumes:
- ./app:/app
- ./storage:/storage:rw
hostname: app
build:
context: ./app
dockerfile: ../Dockerfile
platform: linux/amd64
working_dir: /app
depends_on:
- llm
networks:
my_network:
env_file:
- .env
command:
- /bin/bash
- -c
- |
./start.sh
networks:
my_network: