forked from curdriceaurora/Local-File-Organizer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
53 lines (48 loc) · 1.13 KB
/
docker-compose.dev.yml
File metadata and controls
53 lines (48 loc) · 1.13 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
# 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
- REDIS_URL=redis://redis:6379/0
ports:
- "8000:8000"
- "5678:5678"
redis:
ports:
- "6379:6379"
test-runner:
build:
context: .
dockerfile: Dockerfile.dev
container_name: file-organizer-tests
volumes:
- ./src:/app/src
- ./tests:/app/tests
environment:
- REDIS_URL=redis://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