From e6dc003e138551fc9caeeb58002392112e1bf6bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=B0=91=E5=8D=BF?= Date: Wed, 26 Oct 2022 17:56:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=81=E6=9C=89=E5=8C=96=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + standalone-deployment/docker-compose.yml | 56 ++++++++++++++++++++++++ standalone-deployment/start.sh | 4 ++ 3 files changed, 61 insertions(+) create mode 100644 .gitignore create mode 100644 standalone-deployment/docker-compose.yml create mode 100644 standalone-deployment/start.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f11b75 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea/ diff --git a/standalone-deployment/docker-compose.yml b/standalone-deployment/docker-compose.yml new file mode 100644 index 0000000..81c94c0 --- /dev/null +++ b/standalone-deployment/docker-compose.yml @@ -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 diff --git a/standalone-deployment/start.sh b/standalone-deployment/start.sh new file mode 100644 index 0000000..4efae40 --- /dev/null +++ b/standalone-deployment/start.sh @@ -0,0 +1,4 @@ + +docker login --username=shqd@bd-aiit registry.cn-wulanchabu.aliyuncs.com -p aiit1234 +docker compose down +docker compose up -d \ No newline at end of file