-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
45 lines (42 loc) · 1.11 KB
/
Copy pathdocker-compose.local.yml
File metadata and controls
45 lines (42 loc) · 1.11 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
version: '3.8'
services:
piholevault:
build:
context: .
dockerfile: Dockerfile.local
container_name: piholevault-local
ports:
- "3000:80" # Single port for both frontend and backend
volumes:
- ./data:/app/data
- ./backups:/app/backups
- ./debug-logs:/app/data/debug # Debug logs (only used when DEBUG_MODE=true)
- ssh_keys:/root/.ssh
environment:
- NODE_ENV=production
- DATA_DIR=/app/data
- BACKUP_DIR=/app/backups
- DISCORD_WEBHOOK_URL=${DISCORD_WEBHOOK_URL}
# Debug Configuration (set to 'true' to enable debug mode)
- DEBUG_MODE=true
- LOG_LEVEL=info
- DEBUG_LEVEL=info
env_file:
- .env
# DNS configuration should be set per environment
# Example: dns: ["192.168.1.1", "8.8.8.8"]
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- piholevault-network
networks:
piholevault-network:
driver: bridge
volumes:
ssh_keys:
driver: local