-
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (69 loc) · 1.81 KB
/
docker-compose.yml
File metadata and controls
78 lines (69 loc) · 1.81 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
65
66
67
68
69
70
71
72
73
74
75
76
77
# How to use :
# username=admin pass_md5=0192023a7bbd73250516f069df18b500 uid=1000 gid=1000 docker-compose up -d
# docker-compose down
# --------------------------------------------------------------------------------
version: '2'
services:
nginx:
hostname: NGINX
container_name: docker_nginx
image: nginx:mainline
volumes:
- ./nginx/etc/calibre_site.conf:/etc/nginx/conf.d/calibre_site.conf
- ./nginx/html:/usr/share/nginx/html
ports:
- "80:80"
networks:
vpn:
ipv4_address: 172.168.25.2
restart: on-failure
calibre_mgr:
image: linuxserver/calibre:version-v5.2.0
hostname: CALIBRE_MGR
container_name: docker_calibre_mgr
environment:
- PUID=${uid}
- PGID=${gid}
- TZ=Aisa/Shanghai
- GUAC_USER=${username}
- GUAC_PASS=${pass_md5}
- UMASK_SET=022
volumes:
- ./data/:/config/
- ./books/:/books/
ports:
- "8080:8080"
networks:
vpn:
ipv4_address: 172.168.25.3
depends_on:
- nginx
restart: on-failure
calibre_cms:
image: linuxserver/calibre-web:version-0.6.12
hostname: CALIBRE_CMS
container_name: docker_calibre_cms
environment:
- PUID=${uid}
- PGID=${gid}
- TZ=Aisa/Shanghai
- DOCKER_MODS=linuxserver/calibre-web:calibre
volumes:
- ./data/:/config/
- ./books/:/books/
ports:
- "8083:8083"
networks:
vpn:
ipv4_address: 172.168.25.4
depends_on:
- calibre_mgr
restart: on-failure
networks:
vpn:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.168.25.0/24
gateway: 172.168.25.1