-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBooks.yml
135 lines (127 loc) · 4.04 KB
/
Books.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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
## This docker-compose file is designed to be used as a template in portainer.
## It is widely (completely) inspired from the funkypenguin's cookbook.
## Don't miss his webpage: https://geek-cookbook.funkypenguin.co.nz
##
##
## This template can be set up in your portainer "App template".
## Don't forget to set the following environment variables:
## - PUID => user id that can read/write the media files.
## - PGID => group id that can read/write the media files.
## - DOMAIN => your DNS domainname ( example.com )
## - OAUTH2_PROXY_CLIENT_ID => please see https://github.com/bitly/oauth2_proxy
## - OAUTH2_PROXY_CLIENT_SECRET => please see https://github.com/bitly/oauth2_proxy
## - OAUTH2_PROXY_COOKIE_SECRET => Some random long string
version: '3'
services:
lazylibrarian:
image: thraxis/lazylibrarian-calibre:latest
environment:
- PUID=$PUID
- PGID=$PGID
- TZ=Europe/Paris
volumes:
# - /var/data/volumes/lazylibrarian:/config
- $MYDIR/lazylibrarian-thraxis:/config
# - /media/gmedia/Books:/books
- $MYDIR/Calibre-lib:/books
- /media/local/DlTmp/:/downloads
- /media/gmedia/DlTmp/BooksImport:/autoimport
# - /media/Books:/calibreFolder
networks:
- autopirate3_internal
lazylibrarian_proxy:
image: a5huynh/oauth2_proxy
networks:
- autopirate3_internal
- traefik_public
deploy:
labels:
- traefik.frontend.rule=Host:lazylibrarian.$DOMAIN
- traefik.docker.network=traefik_public
- traefik.port=4180
volumes:
- $MYDIR/authenticated-emails.txt:/authenticated-emails.txt
command: |
-cookie-secure=false
-upstream=http://lazylibrarian:5299
-redirect-url=https://lazylibrarian.$DOMAIN
-http-address=http://0.0.0.0:4180
-email-domain=$DOMAIN
-provider=google
-authenticated-emails-file=/authenticated-emails.txt
environment:
- OAUTH2_PROXY_CLIENT_ID=$OAUTH2_PROXY_CLIENT_ID
- OAUTH2_PROXY_CLIENT_SECRET=$OAUTH2_PROXY_CLIENT_SECRET
- OAUTH2_PROXY_COOKIE_SECRET=$OAUTH2_PROXY_COOKIE_SECRET
calibre-web:
image: technosoft2000/calibre-web
volumes:
- $MYDIR/Calibre-lib:/books
- $MYDIR/calibre-web:/calibre-web/config
environment:
- PUID=1000
- PGID=1000
- USE_CONFIG_DIR=true
- SET_CONTAINER_TIMEZONE=true
- CONTAINER_TIMEZONE=Europe/Paris
- TZ=Europe/Paris
- LANG=fr_FR.UTF-8
- LANGUAGE=fr_FR.UTF-8
- LC_ALL=fr_FR.UTF-8
networks:
- autopirate3_internal
- traefik_public
deploy:
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik_public"
- "traefik.port=8083"
- "traefik.frontend.rule=Host:calibre.$DOMAIN"
calibre-server:
image: cgspeck/docker-rdp-calibre
volumes:
- $MYDIR/Calibre-lib:/config
- /media/gmedia/DlTmp/Books:/autoimport
ports:
- 18080:8080
- 18081:8081
- 3389:3389
environment:
- USER_ID=1000
- GROUP_ID=1000
- EDGE=0 #Mise à jour à chaque démarrage
- WIDTH=1280
- HEIGHT=720
- TZ=Europe/Paris
networks:
- autopirate3_internal
- traefik_public
calibre-server_proxy:
image: a5huynh/oauth2_proxy
networks:
- autopirate3_internal
- traefik_public
deploy:
labels:
- traefik.frontend.rule=Host:calibre-server.$DOMAIN
- traefik.docker.network=traefik_public
- traefik.port=4180
volumes:
- $MYDIR/authenticated-emails.txt:/authenticated-emails.txt
command: |
-cookie-secure=false
-upstream=http://calibre-server:8080
-redirect-url=https://calibre-server.$DOMAIN
-http-address=http://0.0.0.0:4180
-email-domain=$DOMAIN
-provider=google
-authenticated-emails-file=/authenticated-emails.txt
environment:
- OAUTH2_PROXY_CLIENT_ID=$OAUTH2_PROXY_CLIENT_ID
- OAUTH2_PROXY_CLIENT_SECRET=$OAUTH2_PROXY_CLIENT_SECRET
- OAUTH2_PROXY_COOKIE_SECRET=$OAUTH2_PROXY_COOKIE_SECRET
networks:
traefik_public:
external: true
autopirate3_internal:
external: true