Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (63 loc) · 2.84 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (63 loc) · 2.84 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
# Librarr — reference Compose file.
#
# docker compose up -d # pull the published image and run
# docker compose up -d --build # build from this checkout instead
#
# Every setting below is overridable from the environment (or a .env file
# next to this one, which is gitignored) so you never have to edit — and
# dirty — this tracked file:
#
# LIBRARR_IMAGE image to run; defaults to the :beta tag (see below)
# PUID / PGID host uid/gid Librarr runs as (default 1000:1000). The
# container starts as root, gives /config to this
# user, then drops to it — files it writes under
# /config, /books and /downloads are owned by it.
# /books and /downloads are never chowned: make sure
# this user can write to them on the host.
# UMASK_SET umask for files Librarr creates (002 here = group-
# writable; the image's own default is 022)
# TZ e.g. America/Denver; defaults to UTC
# LIBRARR_PORT host port for the web UI (container side stays 8787)
# LIBRARR_CONFIG host path for persistent app data
# LIBRARR_BOOKS host path for your library root
# LIBRARR_DOWNLOADS host path where download clients drop completed grabs
#
# Example .env:
# TZ=America/Denver
# LIBRARR_BOOKS=/mnt/media/books
#
# Image tag: every release so far is a beta, so only `:beta` and the exact
# version tags (e.g. `:1.2.3-beta`) are published. `:latest` will exist once
# there is a stable release — until then pulling it fails.
#
# Prefer Docker's own `user:` over PUID/PGID? Add `user: "1000:1000"` to the
# service: the container then never runs as root, PUID/PGID are ignored, and
# the mounted directories must already be writable by that uid on the host.
#
# See distribution/docker/README.md for the multi-arch build instructions
# and the full volume/port/variable reference.
services:
librarr:
image: ${LIBRARR_IMAGE:-ghcr.io/rorqualx/librarr:beta}
container_name: librarr
build:
context: .
dockerfile: distribution/docker/Dockerfile
# No DOTNET_RID: the Dockerfile maps TARGETARCH to the musl RID itself,
# and Compose sets TARGETARCH from the host. To build for a different
# architecture, add a `platform:` key or use `docker buildx bake`.
args:
LIBRARR_VERSION: ${LIBRARR_VERSION:-1.0.0-beta.0}
ports:
- "${LIBRARR_PORT:-8787}:8787"
- "${LIBRARR_SSL_PORT:-6868}:6868"
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
- TZ=${TZ:-Etc/UTC}
- UMASK_SET=${UMASK_SET:-002}
volumes:
- ${LIBRARR_CONFIG:-./docker-config}:/config
- ${LIBRARR_BOOKS:-./docker-books}:/books
- ${LIBRARR_DOWNLOADS:-./docker-downloads}:/downloads
restart: unless-stopped