-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.postgres.yaml
More file actions
82 lines (71 loc) · 2.11 KB
/
compose.postgres.yaml
File metadata and controls
82 lines (71 loc) · 2.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
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
82
services:
postgres:
image: postgres:16-alpine
container_name: audible-plex-postgres
environment:
POSTGRES_DB: audible
POSTGRES_USER: audible
POSTGRES_PASSWORD: changeme
volumes:
- postgres-data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U audible -d audible"]
interval: 5s
timeout: 3s
retries: 5
start_period: 10s
networks:
- audible-net
audible-plex:
image: ghcr.io/mstrhakr/audplexus:latest
container_name: audplexus
depends_on:
postgres:
condition: service_healthy
restart: true
ports:
- "8080:8080"
# Standard Docker/Compose user mapping (Linux hosts)
# user: "${UID:-1000}:${GID:-1000}"
volumes:
- ./config:/config
- ./audiobooks:/audiobooks
- ./downloads:/downloads
environment:
# Database Configuration
- DATABASE_TYPE=postgres
- DATABASE_DSN=postgres://audible:changeme@postgres:5432/audible?sslmode=disable
# Paths
- CONFIG_PATH=/config
- AUDIOBOOKS_PATH=/audiobooks
- DOWNLOADS_PATH=/downloads
# Optional: Plex integration
# - PLEX_URL=http://plex:32400
# - PLEX_TOKEN=your-plex-token
# Optional: Output format and concurrency
# - OUTPUT_FORMAT=m4b
# - DOWNLOAD_CONCURRENCY=2
# - DECRYPT_CONCURRENCY=2
# - PROCESS_CONCURRENCY=1
# Optional: Sync schedule (cron format)
# - SYNC_SCHEDULE=0 */6 * * *
# Unraid-style user mapping
# - PUID=99
# - PGID=100
# Optional: recursively chown /config,/audiobooks,/downloads on startup
# - TAKE_OWNERSHIP=false
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8080/ || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- audible-net
volumes:
postgres-data:
networks:
audible-net:
driver: bridge