江门
1
This commit is contained in:
@@ -351,6 +351,67 @@ services:
|
||||
|
||||
|
||||
|
||||
|
||||
micro-community-mall:
|
||||
build:
|
||||
context: ../resources/MicroCommunityMall # 指向 Dockerfile 所在目录
|
||||
dockerfile: Dockerfile
|
||||
container_name: micro-community-mall
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- anfioonet
|
||||
ports:
|
||||
- "8015:8015"
|
||||
labels:
|
||||
com.description: "商城 后端 服务 spring boot 2"
|
||||
com.maintainer: "anfioo <anfioozys@gmail.com>"
|
||||
com.module: "backend"
|
||||
environment:
|
||||
REDIS_PASSWORD: ${REDIS_PASSWORD}
|
||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||
TZ: Asia/Bangkok
|
||||
volumes:
|
||||
- backend-mall-logs:/logs
|
||||
- backend-mall-data:/jar
|
||||
depends_on:
|
||||
- volume-helper-ssh
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "100m"
|
||||
max-file: "3"
|
||||
|
||||
eass-report:
|
||||
build:
|
||||
context: ../resources/EassReport # 指向 Dockerfile 所在目录
|
||||
dockerfile: Dockerfile
|
||||
container_name: eass-report
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- anfioonet
|
||||
ports:
|
||||
- "8085:8085"
|
||||
labels:
|
||||
com.description: "eass-report 服务 spring boot 2"
|
||||
com.maintainer: "anfioo <anfioozys@gmail.com>"
|
||||
com.module: "backend"
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||
TZ: Asia/Bangkok
|
||||
volumes:
|
||||
- eass-report-logs:/logs
|
||||
- eass-report-data:/jar
|
||||
depends_on:
|
||||
- volume-helper-ssh
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "100m"
|
||||
max-file: "3"
|
||||
|
||||
|
||||
|
||||
|
||||
micro-community-web:
|
||||
user: root
|
||||
build:
|
||||
@@ -462,6 +523,34 @@ services:
|
||||
max-size: "100m"
|
||||
max-file: "3"
|
||||
|
||||
micro-community-mall-web:
|
||||
build:
|
||||
context: ../resources/Web/MicroCommunityMallWeb
|
||||
dockerfile: Dockerfile
|
||||
container_name: micro-community-mall-web
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8115:8115" # 宿主机端口:容器端口
|
||||
labels:
|
||||
com.description: "商城端 Web 服务(Nginx 静态前端)"
|
||||
com.maintainer: "anfioo <anfioozys@gmail.com>"
|
||||
com.module: "frontend"
|
||||
volumes:
|
||||
# 挂载 Docker 卷用于持久化
|
||||
- web-mall-data:/MicroCommunityMallWeb
|
||||
- web-mall-conf:/etc/nginx
|
||||
environment:
|
||||
TZ: Asia/Bangkok
|
||||
networks:
|
||||
- anfioonet
|
||||
depends_on:
|
||||
- volume-helper-ssh
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "100m"
|
||||
max-file: "3"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -73,7 +73,13 @@ mkdir -p \
|
||||
${VOLUMES_USE}/backend-iot-logs \
|
||||
${VOLUMES_USE}/web-property-staff-conf \
|
||||
${VOLUMES_USE}/web-property-logs \
|
||||
${VOLUMES_USE}/backend-iot-data
|
||||
${VOLUMES_USE}/backend-iot-data \
|
||||
${VOLUMES_USE}/web-mall-data \
|
||||
${VOLUMES_USE}/web-mall-conf \
|
||||
${VOLUMES_USE}/backend-mall-logs \
|
||||
${VOLUMES_USE}/backend-mall-data \
|
||||
${VOLUMES_USE}/eass-report-logs \
|
||||
${VOLUMES_USE}/eass-report-data
|
||||
|
||||
|
||||
echo "🎉 所有 volumes 子目录创建完成!"
|
||||
|
||||
Reference in New Issue
Block a user