-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.siyuan.yml
129 lines (117 loc) · 2.8 KB
/
docker-compose.siyuan.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
services:
frontend:
build:
args:
- SITE_NAME=Siyuan
container_name: siyuan-frontend
mem_limit: 1G
memswap_limit: 1G
caddy:
container_name: siyuan-caddy
volumes:
- "/mnt/nfs27T:/srv/nfs27T:ro"
- "./caddy/Caddyfile.siyuan:/etc/caddy/Caddyfile:ro"
- "/etc/ssl/certs/ftp_sjtu:/etc/ssl/certs/ftp_sjtu:ro"
mem_limit: 20G
memswap_limit: 20G
lug:
container_name: siyuan-lug
volumes:
- "/mnt/nfs27T:/srv/nfs27T"
- "./config.siyuan.yaml:/config.yaml:ro"
environment:
MIRROR_CLONE_SITE: "mirror.sjtu.edu.cn"
mem_limit: 30G
# memswap_limit: 20G
rsync-gateway:
container_name: siyuan-rsync-gateway
volumes:
- "./rsync-gateway/config.siyuan.toml:/app/config.toml:ro"
mem_limit: 5G
memswap_limit: 5G
postgres:
container_name: siyuan-postgres
volumes:
- './postgresql.siyuan.conf:/etc/postgresql/postgresql.conf:ro'
- '/srv/mirror/postgres-data:/var/lib/postgresql/data'
mem_limit: 30G
memswap_limit: 30G
logspout:
container_name: siyuan-logspout
command: syslog+tcp://tunnel:5004
cadvisor:
container_name: siyuan-cadvisor
clash:
container_name: siyuan-clash
ports:
- 127.0.0.1:8080:8080
mirror-intel:
container_name: siyuan-mirror-intel
volumes:
- "/mnt/nfs27T/mirror-intel-cache:/mnt/cache"
mem_limit: 15G
memswap_limit: 15G
tunnel:
container_name: siyuan-tunnel
restart: unless-stopped
image: v2ray/official
expose:
- 5003
- 5004
- 5005
- 5007
ports:
- "127.0.0.1:5005:5005"
networks:
- tunnel-net
volumes:
- "./secrets/v2ray.json:/etc/v2ray/config.json:z,ro"
logging:
options:
max-size: "4M"
max-file: "20"
ulimits:
nofile:
soft: 80000
hard: 120000
mem_limit: 2G
memswap_limit: 2G
rsyncd:
container_name: siyuan-rsyncd
volumes:
- ./rsyncd/rsyncd.siyuan.conf:/etc/rsyncd.conf:ro
- /mnt/nfs27T:/srv/nfs27T:ro
- ./rsyncd/motd.siyuan:/etc/rsync/motd:ro
git-backend:
container_name: siyuan-git-backend
volumes:
- "/mnt/nfs27T/git:/git:z"
mem_limit: 1G
memswap_limit: 1G
networks:
host-monitor-net:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.31.0.0/16
driver_opts:
com.docker.network.driver.mtu: 1450
monitor-net:
driver_opts:
com.docker.network.driver.mtu: 1450
tunnel-net:
driver_opts:
com.docker.network.driver.mtu: 1450
proxy-net:
driver_opts:
com.docker.network.driver.mtu: 1450
ipv6-service-net:
enable_ipv6: true
driver: bridge
ipam:
driver: default
config:
- subnet: fd01::/80
driver_opts:
com.docker.network.driver.mtu: 1450