forked from QiuYannnn/Local-File-Organizer
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
61 lines (56 loc) · 1.65 KB
/
docker-compose.dev.yml
File metadata and controls
61 lines (56 loc) · 1.65 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
# Development override for docker-compose.yml
# Usage: docker compose -f docker-compose.yml -f docker-compose.dev.yml up
version: "3.8"
services:
file-organizer:
build:
context: .
dockerfile: Dockerfile.dev
container_name: file-organizer-dev
volumes:
- ./src:/app/src
- organizer-data:/data
environment:
- FILE_ORGANIZER_DATA_DIR=/data
- FILE_ORGANIZER_LOG_LEVEL=DEBUG
- FILE_ORGANIZER_DEBUG=1
- FO_REDIS_URL=redis://:${REDIS_PASSWORD:-changeme}@redis:6379/0
# Point Ollama at the host machine so the container can reach the Mac's Ollama server.
# OLLAMA_HOST is read by the ollama Python client; FO_OLLAMA_URL by the API config.
- OLLAMA_HOST=http://host.docker.internal:11434
- FO_OLLAMA_URL=http://host.docker.internal:11434
# Ensure live-mounted src/ takes precedence over the installed package
- PYTHONPATH=/app/src
ports:
- "8000:8000"
- "5678:5678"
extra_hosts:
- "host.docker.internal:host-gateway"
redis:
ports:
- "127.0.0.1:6379:6379"
test-runner:
build:
context: .
dockerfile: Dockerfile.dev
container_name: file-organizer-tests
volumes:
- ./src:/app/src
- ./tests:/app/tests
environment:
- FO_REDIS_URL=redis://:${REDIS_PASSWORD:-changeme}@redis:6379/0
- FILE_ORGANIZER_LOG_LEVEL=DEBUG
command: ["python", "-m", "pytest", "tests/", "-v", "--tb=short"]
networks:
- organizer-network
depends_on:
redis:
condition: service_healthy
profiles:
- test
volumes:
organizer-data:
driver: local
networks:
organizer-network:
driver: bridge