私有化部署
This commit is contained in:
parent
34e709daa2
commit
e6dc003e13
|
|
@ -0,0 +1 @@
|
|||
.idea/
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
version: '3'
|
||||
services:
|
||||
redis:
|
||||
image: redis:5.0.4
|
||||
container_name: redis
|
||||
volumes:
|
||||
- "../redis/data:/data"
|
||||
ports:
|
||||
- "6379:6379"
|
||||
restart: always
|
||||
postgresql:
|
||||
image: postgres:11-alpine
|
||||
container_name: postgres
|
||||
volumes:
|
||||
- "../postgresql/data:/var/lib/postgresql/data"
|
||||
ports:
|
||||
- "5432:5432"
|
||||
environment:
|
||||
POSTGRES_PASSWORD: jetlinks
|
||||
POSTGRES_DB: jetlinks
|
||||
TZ: Asia/Shanghai
|
||||
serviceplatform:
|
||||
image: registry.cn-wulanchabu.aliyuncs.com/aiit-lab/service-platform:1.0
|
||||
container_name: service-platform
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 4G
|
||||
reservations:
|
||||
memory: 2G
|
||||
ports:
|
||||
- "8848:8848"
|
||||
- "8890:8890"
|
||||
- "1883-1890:1883-1890"
|
||||
- "8000-8010:8000-8010"
|
||||
volumes:
|
||||
- ../static/upload:/application/static/upload
|
||||
- ../data/files:/application/data/files
|
||||
- ../data/protocols:/application/data/protocols
|
||||
- ../logs:/var/logs/service-platform
|
||||
environment:
|
||||
- "JAVA_OPTS=-Duser.language=zh -XX:+UseG1GC"
|
||||
- "TZ=Asia/Shanghai"
|
||||
- "hsweb.file.upload.static-location=http://127.0.0.1:8848/upload" #上传的静态文件访问根地址,为ui的地址.
|
||||
- "file.manager.storage-base-path=/application/data/files"
|
||||
- "logging.level.io.r2dbc=warn"
|
||||
- "logging.level.org.springframework.data=warn"
|
||||
- "logging.level.org.springframework=warn"
|
||||
- "logging.level.org.jetlinks=warn"
|
||||
- "logging.level.org.hswebframework=warn"
|
||||
- "logging.level.org.springframework.data.r2dbc.connectionfactory=warn"
|
||||
frontend:
|
||||
image: registry.cn-wulanchabu.aliyuncs.com/aiit-lab/xiu-service-platform-frontend:1.0
|
||||
container_name: frontend
|
||||
ports:
|
||||
- 8012:8012
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
docker login --username=shqd@bd-aiit registry.cn-wulanchabu.aliyuncs.com -p aiit1234
|
||||
docker compose down
|
||||
docker compose up -d
|
||||
Loading…
Reference in New Issue