@@ -35,12 +35,16 @@ services:
35
35
APP_SERVICE_IMAGE : lafyun/app-service:latest
36
36
APP_SERVICE_DEPLOY_HOST : local-dev.host:8080 # `*.local-dev.host` always resolved to 127.0.0.1, used to local development
37
37
APP_SERVICE_DEPLOY_URL_SCHEMA : ' http'
38
+ APP_SERVICE_ENV_NPM_INSTALL_FLAGS : ' --registry=https://registry.npm.taobao.org --no-audit --no-fund'
38
39
STORAGE_SERVICE_API_ENTRYPOINT : http://storage-service:9010
39
40
STORAGE_SERVICE_SECRET : Rewrite_Your_Own_Secret_Salt_abcdefg1234567
40
41
STORAGE_SERVICE_DEPLOY_HOST : fs.local-dev.host:8080 # `*.local-dev.host` always resolved to 127.0.0.1, used to local development
42
+ MINIO_KEY : minio-root-user
43
+ MINIO_SECRET : minio-root-password
44
+ MINIO_INTERNAL_ENDPOINT : http://oss:9000
45
+ MINIO_EXTERNAL_ENDPOINT : http://oss.local-dev.host:8080
41
46
DEBUG_BIND_HOST_APP_PATH : ' ${PWD}/packages/app-service'
42
47
INIT_ROOT_ACCOUNT_PASSWORD : abc123
43
- APP_SERVICE_ENV_NPM_INSTALL_FLAGS : ' --registry=https://registry.npm.taobao.org --no-audit --no-fund'
44
48
command : sh /app/start.sh
45
49
volumes :
46
50
- /var/run/docker.sock:/var/run/docker.sock:ro
@@ -62,8 +66,8 @@ services:
62
66
- mongo
63
67
- system-server
64
68
environment :
65
- DEPLOY_DOMAIN : " *.local-dev.host" # `*.local-dev.host` always resolved to 127.0.0.1, used to local development
66
- DEPLOY_FS_DOMAIN : " *.fs.local-dev.host"
69
+ DEPLOY_DOMAIN : " *.local-dev.host" # `*.local-dev.host` always resolved to 127.0.0.1, used to local development
70
+ DEPLOY_FS_DOMAIN : " *.fs.local-dev.host"
67
71
SYS_CLIENT_HOST : console.local-dev.host
68
72
DOCS_HOST : docs.local-dev.host
69
73
volumes :
@@ -80,17 +84,46 @@ services:
80
84
networks :
81
85
- laf_shared_network
82
86
87
+ oss :
88
+ image : ' bitnami/minio:2022.4.9'
89
+ environment :
90
+ - MINIO_ROOT_USER=minio-root-user
91
+ - MINIO_ROOT_PASSWORD=minio-root-password
92
+ - MINIO_DISTRIBUTED_MODE_ENABLED=yes
93
+ - MINIO_DISTRIBUTED_NODES=oss/data/{0...3}
94
+ - MINIO_ETCD_ENDPOINTS=http://etcd:2379
95
+ - MINIO_SKIP_CLIENT=yes
96
+ ports :
97
+ - " 9020:9000"
98
+ - " 9120:9001"
99
+ volumes :
100
+ - oss-data:/data
101
+ networks :
102
+ - laf_shared_network
103
+
104
+ etcd :
105
+ image : ' bitnami/etcd:latest'
106
+ environment :
107
+ - ALLOW_NONE_AUTHENTICATION=yes
108
+ - ETCD_ADVERTISE_CLIENT_URLS=http://etcd:2379
109
+ volumes :
110
+ - etcd-data:/bitnami/etcd/data
111
+ ports :
112
+ - 12379:2379
113
+ - 12380:2380
114
+ networks :
115
+ - laf_shared_network
116
+
117
+ # deprecated: just used for old versions
83
118
storage-service :
84
- image : node:16-alpine
119
+ image : lafyun/storage-service:latest
85
120
user : root
86
121
working_dir : /app
87
122
environment :
88
123
DB_URI : mongodb://root:password123@mongo:27017/laf-fs?authSource=admin&replicaSet=laf&writeConcern=majority
89
124
LOG_LEVEL : debug
90
125
SERVER_SECRET_SALT : Rewrite_Your_Own_Secret_Salt_abcdefg1234567
91
- command : npx nodemon
92
- volumes :
93
- - ./packages/storage-service:/app
126
+
94
127
ports :
95
128
- " 9010"
96
129
depends_on :
@@ -103,7 +136,9 @@ services:
103
136
104
137
volumes :
105
138
db-data :
106
-
139
+ oss-data :
140
+ etcd-data :
141
+
107
142
networks :
108
143
laf_shared_network :
109
144
external : true
0 commit comments