-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
81 lines (76 loc) · 2.03 KB
/
docker-compose.dev.yml
File metadata and controls
81 lines (76 loc) · 2.03 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '3.8'
# Development compose file that builds from source
# Usage: docker-compose -f docker-compose.dev.yml up
services:
mediawarn:
build:
context: .
dockerfile: Dockerfile
container_name: mediawarn-dev
environment:
- SERVICE=all
- DATABASE_URL=postgresql://cws:password@postgres:5432/cws
- REDIS_URL=redis://redis:6379
- SCAN_INTERVAL=300
- WORKERS=4
- NLP_WORKERS=2
- PORT=8000
- REACT_APP_API_URL=http://localhost:8000
volumes:
- ./data:/data # Auto-created by Docker Compose
- ./config:/app/config:ro # Auto-created by Docker Compose
- nlp_models:/models # Named volume (auto-created)
# Mount your media directories here, e.g.:
# - /path/to/your/media:/media:ro
ports:
- "7219:7219"
- "8000:8000"
- "8001:8001"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7219", "||", "exit", "1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
restart: unless-stopped
postgres:
image: postgres:15-alpine
container_name: cws-postgres-dev
environment:
- POSTGRES_DB=cws
- POSTGRES_USER=cws
- POSTGRES_PASSWORD=password
volumes:
- postgres_data_dev:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U cws"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
redis:
image: redis:7-alpine
container_name: cws-redis-dev
command: redis-server --appendonly yes
volumes:
- redis_data_dev:/data
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
postgres_data_dev:
redis_data_dev:
nlp_models: