forked from curdriceaurora/Local-File-Organizer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (45 loc) · 952 Bytes
/
docker-compose.yml
File metadata and controls
49 lines (45 loc) · 952 Bytes
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
version: "3.8"
services:
file-organizer:
build:
context: .
dockerfile: Dockerfile
container_name: file-organizer
restart: unless-stopped
ports:
- "8000:8000"
volumes:
- organizer-data:/data
environment:
- FILE_ORGANIZER_DATA_DIR=/data
- FILE_ORGANIZER_LOG_LEVEL=INFO
- REDIS_URL=redis://redis:6379/0
networks:
- organizer-network
depends_on:
redis:
condition: service_healthy
redis:
image: redis:7-alpine
container_name: file-organizer-redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
networks:
- organizer-network
volumes:
organizer-data:
driver: local
redis-data:
driver: local
networks:
organizer-network:
driver: bridge