This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml.example
116 lines (110 loc) · 2.29 KB
/
docker-compose.yml.example
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
version: "2.3"
services:
v2ray:
image: v2ray/official
volumes:
- ./v2ray/config.json:/etc/v2ray/config.json
networks:
- proxy_net
- git_net
container_name: v2ray
logging:
options:
max-size: "2M"
max-file: "10"
mem_limit: 2G
memswap_limit: 2G
cpu_count: 2
restart: always
environment:
V2RAY_RAY_BUFFER_SIZE: 5
git-http-backend:
build:
context: ./git-http-backend
volumes:
- /mnt/data12T/git:/git
container_name: git-http-backend
logging:
options:
max-size: "2M"
max-file: "10"
mem_limit: 1G
memswap_limit: 1G
cpu_count: 4
cpu_shares: 500
restart: always
networks:
- git_net
lug:
build:
context: ./lug
image: lug:built
environment:
http_proxy: http://v2ray:8080
https_proxy: http://v2ray:8080
RSYNC_PROXY: v2ray:8080
container_name: lug
volumes:
- ./lug/config.yaml:/config.yaml
- ./lug/worker-script:/worker-script
- /mnt/data12T:/mnt
command: -c /config.yaml
ports:
- "8081:8081"
ulimits:
nofile:
soft: 20000
hard: 40000
nproc:
hard: 1024
soft: 1024
networks:
- proxy_net
- lug_net
logging:
options:
max-size: "2M"
max-file: "10"
mem_limit: 10G
memswap_limit: 10G
cpu_count: 4
restart: always
caddy:
build:
context: ./caddy-builder/
image: caddy:built
environment:
http_proxy: http://v2ray:8080
https_proxy: http://v2ray:8080
RSYNC_PROXY: v2ray:8080
container_name: caddy
command: -conf /etc/Caddyfile -catimeout 30s -email [email protected] -agree --log stdout -port 443
volumes:
- ./caddy/Caddyfile:/etc/Caddyfile
- /mnt/data12T:/mnt
- /root/.acme.sh/mirrors.sjtug.org:/certs
- ./frontend/dist:/mirror-frontend
ports:
- "80:80"
- "443:443"
- "9180:9180"
logging:
options:
max-size: "2M"
max-file: "10"
ulimits:
nofile:
soft: 20000
hard: 40000
networks:
- proxy_net
- lug_net
- git_net
mem_limit: 5G
memswap_limit: 5G
cpu_count: 8
restart: always
networks:
proxy_net:
lug_net:
git_net: