跳转到内容

docker-compose.yaml

B2B2C-SaaS 多元版 · docker-compose.yaml

version: "3.8"
services:
mall4cloud-auth:
build:
context: mall4cloud-auth
container_name: mall4cloud-auth
environment:
- JAVA_OPTS=-Xmx512m -Xss256k -Xshareclasses -Xtune:virtualized -Dspring.profiles.active=docker
- NACOS_HOST=192.168.1.41
- NACOS_PORT=8848
- NACOS_PASSWORD=hn02le.34lkdLKD
- DUBBO_IP_TO_REGISTRY=192.168.1.41
- TZ=Asia/Shanghai
expose:
- 9101
network_mode: "host"
image: mall4cloud-auth
restart: always
volumes:
- ./mall4cloud-auth:/opt/projects/mall4cloud
mall4cloud-biz:
build:
context: mall4cloud-biz
container_name: mall4cloud-biz
environment:
- JAVA_OPTS=-Xmx512m -Xss256k -Xshareclasses -Xtune:virtualized -Dspring.profiles.active=docker
- NACOS_HOST=192.168.1.41
- NACOS_PORT=8848
- NACOS_PASSWORD=hn02le.34lkdLKD
- DUBBO_IP_TO_REGISTRY=192.168.1.41
- TZ=Asia/Shanghai
expose:
- 9118
network_mode: "host"
image: mall4cloud-biz
restart: always
volumes:
- ./mall4cloud-biz:/opt/projects/mall4cloud
mall4cloud-marketing:
build:
context: mall4cloud-marketing
container_name: mall4cloud-marketing
environment:
- JAVA_OPTS=-Xmx512m -Xss256k -Xshareclasses -Xtune:virtualized -Dspring.profiles.active=docker
- NACOS_HOST=192.168.1.41
- NACOS_PORT=8848
- NACOS_PASSWORD=hn02le.34lkdLKD
- DUBBO_IP_TO_REGISTRY=192.168.1.41
- TZ=Asia/Shanghai
expose:
- 9109
network_mode: "host"
image: mall4cloud-marketing
restart: always
volumes:
- ./mall4cloud-marketing:/opt/projects/mall4cloud
mall4cloud-flow:
build:
context: mall4cloud-flow
container_name: mall4cloud-flow
environment:
- JAVA_OPTS=-Xmx512m -Xss256k -Xshareclasses -Xtune:virtualized -Dspring.profiles.active=docker
- NACOS_HOST=192.168.1.41
- NACOS_PORT=8848
- NACOS_PASSWORD=hn02le.34lkdLKD
- DUBBO_IP_TO_REGISTRY=192.168.1.41
- TZ=Asia/Shanghai
expose:
- 9116
network_mode: "host"
image: mall4cloud-flow
restart: always
volumes:
- ./mall4cloud-flow:/opt/projects/mall4cloud
mall4cloud-gateway:
build:
context: mall4cloud-gateway
container_name: mall4cloud-gateway
environment:
- JAVA_OPTS=-Xmx512m -Xss256k -Xshareclasses -Xtune:virtualized -Dspring.profiles.active=docker
- NACOS_HOST=192.168.1.41
- NACOS_PORT=8848
- NACOS_PASSWORD=hn02le.34lkdLKD
- TZ=Asia/Shanghai
expose:
- 8000
network_mode: "host"
image: mall4cloud-gateway
restart: always
volumes:
- ./mall4cloud-gateway:/opt/projects/mall4cloud
mall4cloud-group:
build:
context: mall4cloud-group
container_name: mall4cloud-group
environment:
- JAVA_OPTS=-Xmx512m -Xss256k -Xshareclasses -Xtune:virtualized -Dspring.profiles.active=docker
- NACOS_HOST=192.168.1.41
- NACOS_PORT=8848
- NACOS_PASSWORD=hn02le.34lkdLKD
- DUBBO_IP_TO_REGISTRY=192.168.1.41
- TZ=Asia/Shanghai
expose:
- 9114
network_mode: "host"
image: mall4cloud-group
restart: always
volumes:
- ./mall4cloud-group:/opt/projects/mall4cloud
mall4cloud-order:
build:
context: mall4cloud-order
container_name: mall4cloud-order
environment:
- JAVA_OPTS=-Xmx1024m -Xss256k -Xshareclasses -Xtune:virtualized -Dspring.profiles.active=docker
- NACOS_HOST=192.168.1.41
- NACOS_PORT=8848
- NACOS_PASSWORD=hn02le.34lkdLKD
- DUBBO_IP_TO_REGISTRY=192.168.1.41
- TZ=Asia/Shanghai
expose:
- 9106
network_mode: "host"
image: mall4cloud-order
restart: always
volumes:
- ./mall4cloud-order:/opt/projects/mall4cloud
mall4cloud-payment:
build:
context: mall4cloud-payment
container_name: mall4cloud-payment
environment:
- JAVA_OPTS=-Xmx512m -Xss256k -Xshareclasses -Xtune:virtualized -Dspring.profiles.active=docker
- NACOS_HOST=192.168.1.41
- NACOS_PORT=8848
- NACOS_PASSWORD=hn02le.34lkdLKD
- DUBBO_IP_TO_REGISTRY=192.168.1.41
- TZ=Asia/Shanghai
expose:
- 9113
network_mode: "host"
image: mall4cloud-payment
restart: always
volumes:
- ./mall4cloud-payment:/opt/projects/mall4cloud
mall4cloud-admin:
build:
context: mall4cloud-admin
container_name: mall4cloud-admin
environment:
- JAVA_OPTS=-Xmx512m -Xss256k -Xshareclasses -Xtune:virtualized -Dspring.profiles.active=docker
- NACOS_HOST=192.168.1.41
- NACOS_PORT=8848
- NACOS_PASSWORD=hn02le.34lkdLKD
- DUBBO_IP_TO_REGISTRY=192.168.1.41
- TZ=Asia/Shanghai
expose:
- 9112
network_mode: "host"
image: mall4cloud-admin
restart: always
volumes:
- ./mall4cloud-admin:/opt/projects/mall4cloud
mall4cloud-product:
build:
context: mall4cloud-product
container_name: mall4cloud-product
environment:
- JAVA_OPTS=-Xmx1024m -Xss256k -Xshareclasses -Xtune:virtualized -Dspring.profiles.active=docker
- NACOS_HOST=192.168.1.41
- NACOS_PORT=8848
- NACOS_PASSWORD=hn02le.34lkdLKD
- DUBBO_IP_TO_REGISTRY=192.168.1.41
- TZ=Asia/Shanghai
expose:
- 9104
network_mode: "host"
image: mall4cloud-product
restart: always
volumes:
- ./mall4cloud-product:/opt/projects/mall4cloud
mall4cloud-search:
build:
context: mall4cloud-search
container_name: mall4cloud-search
environment:
- JAVA_OPTS=-Xmx512m -Xss256k -Xshareclasses -Xtune:virtualized -Dspring.profiles.active=docker
- NACOS_HOST=192.168.1.41
- NACOS_PORT=8848
- NACOS_PASSWORD=hn02le.34lkdLKD
- DUBBO_IP_TO_REGISTRY=192.168.1.41
- TZ=Asia/Shanghai
expose:
- 9108
network_mode: "host"
image: mall4cloud-search
restart: always
volumes:
- ./mall4cloud-search:/opt/projects/mall4cloud
mall4cloud-seckill:
build:
context: mall4cloud-seckill
container_name: mall4cloud-seckill
environment:
- JAVA_OPTS=-Xmx512m -Xss256k -Xshareclasses -Xtune:virtualized -Dspring.profiles.active=docker
- NACOS_HOST=192.168.1.41
- NACOS_PORT=8848
- NACOS_PASSWORD=hn02le.34lkdLKD
- DUBBO_IP_TO_REGISTRY=192.168.1.41
- TZ=Asia/Shanghai
expose:
- 9115
network_mode: "host"
image: mall4cloud-seckill
restart: always
volumes:
- ./mall4cloud-seckill:/opt/projects/mall4cloud
mall4cloud-user:
build:
context: mall4cloud-user
container_name: mall4cloud-user
environment:
- JAVA_OPTS=-Xmx512m -Xss256k -Xshareclasses -Xtune:virtualized -Dspring.profiles.active=docker
- NACOS_HOST=192.168.1.41
- NACOS_PORT=8848
- NACOS_PASSWORD=hn02le.34lkdLKD
- DUBBO_IP_TO_REGISTRY=192.168.1.41
- TZ=Asia/Shanghai
expose:
- 9105
network_mode: "host"
image: mall4cloud-user
restart: always
volumes:
- ./mall4cloud-user:/opt/projects/mall4cloud