-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
100 lines (97 loc) · 2.69 KB
/
docker-compose.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
version: '3'
services:
nginx-gateway:
image: nginx:1.21.5
container_name: nginx-gateway
restart: always
privileged: true
environment:
- TZ=Asia/Shanghai
ports:
- "8888:8081"
volumes:
- ./deploy/nginx/conf.d:/etc/nginx/conf.d
- ./data/nginx/log:/var/log/nginx
networks:
- CloudMind_net
depends_on:
- CloudMind
CloudMind:
image: lyumikael/gomodd:v1.20.3 # if you "macOs intel" or "linux amd"
container_name: CloudMind
environment:
TZ: Asia/Shanghai
GOPROXY: https://goproxy.cn,direct
working_dir: /go/CloudMind
volumes:
- .:/go/CloudMind
privileged: true
restart: always
networks:
- CloudMind_net
worker:
image: zhenghaoz/gorse-worker
restart: unless-stopped
container_name: worker
ports:
- "8089:8089"
command: >
--master-host master --master-port 8086
--http-host 0.0.0.0 --http-port 8089
--log-path /var/log/gorse/worker.log
--cache-path /var/lib/gorse/worker_cache.data
volumes:
- ./data/gorse/gorse_log:/var/log/gorse
- ./data/gorse/worker_data:/var/lib/gorse
depends_on:
- master
networks:
- CloudMind_net
server:
image: zhenghaoz/gorse-server
restart: unless-stopped
container_name: server
ports:
- "8087:8087"
command: >
--master-host master --master-port 8086
--http-host 0.0.0.0 --http-port 8087
--log-path /var/log/gorse/server.log
--cache-path /var/lib/gorse/server_cache.data
volumes:
- ./data/gorse/gorse_log:/var/log/gorse
- ./data/gorse/server_data:/var/lib/gorse
depends_on:
- master
networks:
- CloudMind_net
#
master:
image: zhenghaoz/gorse-master
restart: unless-stopped
container_name: master
ports:
- "8086:8086"
- "8088:8088"
environment:
GORSE_CACHE_STORE: redis://:G62m50oigInC30sf@redis:6379/0
GORSE_DATA_STORE: mysql://root:PXDN93VRKUm8TeE7@tcp(mysql:3306)/cloudmind_recommend
# GORSE_DATA_STORE: postgres://gorse:gorse_pass@postgres/gorse?sslmode=disable
# GORSE_DATA_STORE: mongodb://root:password@mongo:27017/gorse?authSource=admin&connect=direct
# GORSE_DATA_STORE: clickhouse://gorse:gorse_pass@clickhouse:8123/gorse
command: >
-c /etc/gorse/config.toml
--log-path /var/log/gorse/master.log
--cache-path /var/lib/gorse/master_cache.data
volumes:
- ./deploy/gorse/config/config.toml:/etc/gorse/config.toml
- ./data/gorse/gorse_log:/var/log/gorse
- ./data/gorse/master_data:/var/lib/gorse
networks:
- CloudMind_net
networks:
CloudMind_net:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16