Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (48 loc) · 2.21 KB
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (48 loc) · 2.21 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
# Minimal AudioSilo deployment. Update the backend or the bundled web player by
# bumping the image tag (or pulling a rebuilt :latest) and re-upping:
# docker compose pull && docker compose up -d
#
# The web player ships inside the image; only /data is persisted (db, config,
# certs). See Dockerfile for how a pinned web build is baked in.
#
# PERMISSIONS: set PUID/PGID to the user that should own /data (the entrypoint
# chowns it, but not a folder mounted inside it, and AUDIOSILO_BACKUP_DIR when set,
# and runs the server as that user, so it works with any volume ownership). Unraid: PUID=99 PGID=100. Synology:
# often 1026/100. Generic Linux: your `id -u` / `id -g`. A folder the server's
# user can't use (a NAS share that refuses the chown) is named in the container
# log with the fix.
services:
audiosilo:
image: ghcr.io/kodestar/audiosilo-server:latest
# Or build locally, pinning the web player image:
# build:
# context: .
# args:
# WEB_IMAGE: ghcr.io/kodestar/audiosilo-web:1.0.0
restart: unless-stopped
ports:
- "8080:8080"
volumes:
- ./data:/data # db, config, certs (first run prints admin creds once)
- /srv/audiobooks:/library:ro
environment:
PUID: "1000" # owner of /data (Unraid: 99)
PGID: "1000" # group of /data (Unraid: 100)
# AUDIOSILO_PUBLIC_URL: "https://books.example.com" # used in QR/invite links
# AUDIOSILO_TLS_MODE: "off" # behind a TLS-terminating proxy
AUDIOSILO_WEB_DIR: /app/web
# The image's HEALTHCHECK (`audiosilo healthcheck` on the container's --data
# folder, the server's /healthz) marks the container unhealthy when the server
# stops answering; Docker doesn't restart it for that. While an upgrade's
# migrations run the server answers "starting", which counts as healthy for
# the start's first thirty minutes, so they finish first. To restart it, add
# a label and an autoheal sidecar:
# labels:
# autoheal: "true"
# autoheal:
# image: willfarrell/autoheal:latest
# restart: unless-stopped
# environment:
# AUTOHEAL_CONTAINER_LABEL: autoheal
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock