-
Notifications
You must be signed in to change notification settings - Fork 0
/
dockerComposer.yml
94 lines (88 loc) · 3.01 KB
/
dockerComposer.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
version: '3'
services:
grizzly:
image: caddy:2.6.2
container_name: grizzly
restart: always
network_mode: host
volumes:
- "/tpdata/caddy/config.json:/tpdata/caddy/config.json"
- "/tpdata/cert/:/tpdata/cert/certificates/acme-v02.api.letsencrypt.org-directory/${domain}/"
- "/tpdata/web/:/tpdata/web/"
- "/tpdata/caddy/logs/:/tpdata/caddy/logs/"
command: caddy run --config /tpdata/caddy/config.json
grizzly-mariadb:
image: mariadb:10.7.3
container_name: grizzly-mariadb
restart: always
network_mode: host
environment:
MYSQL_DATABASE: grizzly_db
MYSQL_ROOT_PASSWORD: "${mariadb_pas}"
TZ: Asia/Shanghai
command: --port=9507
grizzly-redis:
image: redis:6.2.7
container_name: grizzly-redis
restart: always
network_mode: host
command: redis-server --requirepass ${redis_pass} --port 6378
grizzly:
image: jonssonyan/grizzly
container_name: grizzly
restart: always
network_mode: host
volumes:
- "/tpdata/web/:/tpdata/grizzly/webfile/"
- "/tpdata/grizzly/logs/:/tpdata/grizzly/logs/"
- "/tpdata/grizzly/config/:/tpdata/grizzly/config/"
- "/etc/localtime:/etc/localtime"
environment:
- "GIN_MODE=release"
- "mariadb_ip=127.0.0.1"
- "mariadb_port=9507"
- "mariadb_user=root"
- "mariadb_pas=${mariadb_pas}"
- "redis_host=127.0.0.1"
- "redis_port=6378"
- "redis_pass=${redis_pass}"
- "server_port=8081"
grizzly-ui:
image: jonssonyan/grizzly-ui
container_name: grizzly-ui
restart: always
network_mode: host
volumes:
- "/tpdata/grizzly-ui/nginx/default.conf:/etc/nginx/conf.d/default.conf"
- "/tpdata/cert/:/tpdata/cert/"
grizzly-core:
image: jonssonyan/grizzly-core
container_name: grizzly-core
restart: always
network_mode: host
volumes:
- "/tpdata/grizzly-core/bin/xray/config/:/tpdata/grizzly-core/bin/xray/config/"
- "/tpdata/grizzly-core/bin/trojango/config/:/tpdata/grizzly-core/bin/trojango/config/"
- "/tpdata/grizzly-core/bin/hysteria/config/:/tpdata/grizzly-core/bin/hysteria/config/"
- "/tpdata/grizzly-core/bin/naiveproxy/config/:/tpdata/grizzly-core/bin/naiveproxy/config/"
- "/tpdata/grizzly-core/bin/hysteria2/config/:/tpdata/grizzly-core/bin/hysteria2/config/"
- "/tpdata/grizzly-core/logs/:/tpdata/grizzly-core/logs/"
- "/tpdata/grizzly-core/config/:/tpdata/grizzly-core/config/"
- "/tpdata/cert/:/tpdata/cert/"
- "/tpdata/web/:/tpdata/web/"
- "/etc/localtime:/etc/localtime"
environment:
- "GIN_MODE=release"
- "mariadb_ip=127.0.0.1"
- "mariadb_port=9507"
- "mariadb_user=root"
- "mariadb_pas=${mariadb_pas}"
- "database=grizzly_db"
- "account-table=account"
- "redis_host=127.0.0.1"
- "redis_port=6378"
- "redis_pass=${redis_pass}"
- "crt_path=/tpdata/cert/${domain}.crt"
- "key_path=/tpdata/cert/${domain}.key"
- "grpc_port=8100"
- "server_port=8082"