Skip to content

Commit

Permalink
books: Added calibre-web and extracted calibre to its own compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianmiranda committed Oct 28, 2020
1 parent 44281e4 commit f9008cf
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 26 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* [SABnzbd](https://sabnzbd.org/)
* [Deluge](https://deluge-torrent.org/) (built-in dark mode)
* [Calibre](https://calibre-ebook.com/)
* [Calibre Web](https://github.com/janeczku/calibre-web)
* [Portainer 2.0](https://www.portainer.io/)
* [Watchtower](https://github.com/containrrr/watchtower)
* [Organizr](https://github.com/causefx/Organizr)
Expand Down Expand Up @@ -51,6 +52,9 @@ docker-compose -f docker-compose.yml -f docker-compose.torrents-on-vpn.yml -f do

# Main stack + VPN Protected Torrenting + Plex HW Transcoding + Custom domain & SSL certificates
docker-compose -f docker-compose.yml -f docker-compose.torrents-on-vpn.yml -f docker-compose.plex-hw.yml -f docker-compose.traefik.yml up -d

# Main stack + VPN Protected Torrenting + Plex HW Transcoding + Custom domain & SSL certificates + Calibre
docker-compose -f docker-compose.yml -f docker-compose.torrents-on-vpn.yml -f docker-compose.plex-hw.yml -f docker-compose.traefik.yml -f docker-compose.books.yml up -d
```

## Stopping
Expand Down
52 changes: 52 additions & 0 deletions docker-compose.books.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
version: "3.3"

services:
calibre:
image: linuxserver/calibre
container_name: calibre
networks:
default:
ipv4_address: 172.20.2.1
ports:
- 9080:8080
- 9081:8081
labels:
- com.centurylinklabs.watchtower.enable=true
- traefik.enable=true
- traefik.http.routers.calibre.rule=Host(`calibre.${DOMAIN}`)
- traefik.http.routers.calibre.entrypoints=websecured
- traefik.http.routers.calibre.tls.certresolver=myresolver
- traefik.http.services.calibre.loadbalancer.server.port=8080
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIMEZONE}
- GUAC_USER=${CALIBRE_USERNAME}
- GUAC_PASS=${CALIBRE_PASSWORD}
volumes:
- ${CONTAINERS}/calibre:/config
restart: unless-stopped

calibre-web:
image: linuxserver/calibre-web
container_name: calibre-web
networks:
default:
ipv4_address: 172.20.2.6
ports:
- 8083:8083
labels:
- com.centurylinklabs.watchtower.enable=true
- traefik.enable=true
- traefik.http.routers.calibreweb.rule=Host(`calibre-web.${DOMAIN}`)
- traefik.http.routers.calibreweb.entrypoints=websecured
- traefik.http.routers.calibreweb.tls.certresolver=myresolver
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
- DOCKER_MODS=linuxserver/calibre-web:calibre
volumes:
- ${CONTAINERS}/calibre-web:/config
- ${CONTAINERS}/calibre:/books
restart: unless-stopped
26 changes: 0 additions & 26 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,32 +197,6 @@ services:
- ${DOWNLOADS}/usenet:/downloads
restart: unless-stopped

calibre:
image: linuxserver/calibre
container_name: calibre
networks:
default:
ipv4_address: 172.20.2.1
ports:
- 9080:8080
- 9081:8081
labels:
- com.centurylinklabs.watchtower.enable=true
- traefik.enable=true
- traefik.http.routers.calibre.rule=Host(`calibre.${DOMAIN}`)
- traefik.http.routers.calibre.entrypoints=websecured
- traefik.http.routers.calibre.tls.certresolver=myresolver
- traefik.http.services.calibre.loadbalancer.server.port=8080
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIMEZONE}
- GUAC_USER=${CALIBRE_USERNAME}
- GUAC_PASS=${CALIBRE_PASSWORD}
volumes:
- ${CONTAINERS}/calibre:/config
restart: unless-stopped

portainer:
image: portainer/portainer-ce
container_name: portainer
Expand Down

0 comments on commit f9008cf

Please sign in to comment.