-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (48 loc) · 1.44 KB
/
docker-compose.yml
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
version: "3.9"
services:
audiobookshelf:
image: ghcr.io/energostalin/audiobook-tg:latest
# env_file: .env # uncomment to use
build:
context: .
cache_from:
- ghcr.io/energostalin/audiobook-tg:latest
tags:
- ghcr.io/energostalin/audiobook-tg:${RELEASE_VERSION-0}
- ghcr.io/energostalin/audiobook-tg:latest
x-bake:
platforms:
- linux/amd64
- linux/arm64
cap_add:
- SYS_ADMIN
devices:
- /dev/fuse:/dev/fuse:rwm
security_opt:
- apparmor:unconfined
volumes:
- ./metadata:/metadata
- ./config:/config
- ./config.yaml:/config.yaml
- ./tgfs.session:/tgfs.session
restart: unless-stopped
labels:
# watchtower
com.centurylinklabs.watchtower.enable: true
# traefik
traefik.enable: true
traefik.docker.network: traefik
# https
traefik.http.routers.audiobookshelf.rule: Host(`audiobook.${DOMAIN}`)
traefik.http.routers.audiobookshelf.entrypoints: https
traefik.http.routers.audiobookshelf.tls: true
traefik.http.routers.audiobookshelf.tls.certResolver: cloudflare
raefik.http.routers.audiobookshelf.tls.domains[0].main: audiobook.${DOMAIN}
traefik.http.routers.audiobookshelf.service: audiobookshelf
# service
traefik.http.services.audiobookshelf.loadbalancer.server.port: 80
networks:
- traefik
networks:
traefik:
external: true