This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexample.compose.yaml
67 lines (63 loc) · 1.64 KB
/
example.compose.yaml
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
version: '3'
services:
app:
build:
context: ./volo
restart: always
environment:
DATABASE_URL: postgres://volo:volo@db:5432/volo?sslmode=disable
NEXTAUTH_SECRET: '1234567890'
QINIU_ACCESS_KEY: # required
QINIU_SECRET_KEY: # required
QINIU_BUCKET: volo # required 要提前配置好 bucket 为可以公开访问
QINIU_BASE_URL: # required 七牛云 kodo 服务的端点URL,末尾不含 `/`
GORSE_URL: http://recommend:8088
REDIS_URL: redis://cache:6379/8
ES_URL: http://es:9200
INIT_DB: true # if need load mock dataset
ports:
- '3000:3000'
depends_on:
- db
- cache
- es
- recommend
recommend:
image: zhenghaoz/gorse-in-one:latest
restart: always
ports:
- 8088:8088
command: >
-c /etc/gorse/config.toml
--log-path /var/log/gorse/master.log
--cache-path /var/lib/gorse/master_cache.data
volumes:
- ./gorse/example.config.toml:/etc/gorse/config.toml # important !!
depends_on:
- cache
- db
cache:
image: redis:alpine
restart: always
ports:
- '6379:6379'
db:
image: postgres:alpine
restart: always
environment:
POSTGRES_USER: volo
POSTGRES_PASSWORD: volo
POSTGRES_DB: volo
volumes:
- ./gorse/schema.sql:/docker-entrypoint-initdb.d/schema.sql # create recommend schema for gorse
ports:
- '5432:5432'
es:
build:
context: ./elasticsearch
environment:
- 'discovery.type=single-node'
- 'ES_JAVA_OPTS=-Xmx512m -Xms512m'
ports:
- '9200:9200'
# - "9300:9300" if need to deploy cluster