-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (35 loc) · 1002 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
36 lines (35 loc) · 1002 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
services:
rustnzb:
image: ${DOCKERHUB_USERNAME:-ausagentsmith}/rustnzb:latest
container_name: rustnzb
restart: unless-stopped
ports:
- "9095:9090"
volumes:
- ./config:/config
- ./data:/data
- /mnt/data3/downloads:/downloads
environment:
- PUID=1000
- PGID=1000
- TZ=Australia/Sydney
- RUST_LOG=info
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:9090/api/status"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
promtail:
image: grafana/promtail:3.6.10
profiles: [logging]
network_mode: host
volumes:
- ./promtail.yml:/etc/promtail/config.yml:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /var/lib/docker/containers:/var/lib/docker/containers:ro
environment:
LOKI_URL: ${LOKI_URL}
HOSTNAME: ${HOSTNAME:-rustnzb}
command: -config.file=/etc/promtail/config.yml -config.expand-env=true
restart: unless-stopped