-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
52 lines (48 loc) · 1.15 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
version: '3.8'
services:
# Lokalny serwer IMAP z przykładowymi emailami
mailserver:
image: dovecot/dovecot:latest
ports:
- "2143:143"
- "2199:993"
volumes:
- ./docker/mail:/srv/mail
- ./docker/dovecot.conf:/etc/dovecot/dovecot.conf
- ./docker/users:/etc/dovecot/users
environment:
- DOVECOT_USERNAME=testuser
- DOVECOT_PASSWORD=testpass123
command: dovecot -F
# Ollama dla LLM
ollama:
image: ollama/ollama:latest
ports:
- "21434:11434"
volumes:
- ollama_data:/root/.ollama
environment:
- OLLAMA_HOST=0.0.0.0
entrypoint: ["/bin/sh", "-c"]
command: |
ollama serve &
sleep 10
ollama pull mistral:7b
wait
# Aplikacja główna
dune:
build: .
depends_on:
- mailserver
- ollama
volumes:
- .:/app
- ./output:/app/output
environment:
- OLLAMA_BASE_URL=http://ollama:11434
# Note: The internal port (11434) remains the same within the Docker network
# Only the external port (21434) has been changed
working_dir: /app
command: poetry run python dune.py
volumes:
ollama_data: