修改docker-compose文件添加network配置

pull/5659/head
kezhijie 12 months ago
parent 06cc4ec0fe
commit 480878a3db

@ -18,6 +18,8 @@ services:
--default-authentication-plugin=caching_sha2_password --default-authentication-plugin=caching_sha2_password
ports: ports:
- 3306:3306 - 3306:3306
networks:
- jeecg-boot
jeecg-boot-redis: jeecg-boot-redis:
image: redis:5.0 image: redis:5.0
@ -26,6 +28,13 @@ services:
restart: always restart: always
container_name: jeecg-boot-redis container_name: jeecg-boot-redis
hostname: jeecg-boot-redis hostname: jeecg-boot-redis
networks:
- jeecg-boot
networks:
jeecg-boot:
name: jeecg_boot
# jeecg-boot-rabbitmq: # jeecg-boot-rabbitmq:
# image: rabbitmq:3.7.7-management # image: rabbitmq:3.7.7-management

@ -8,6 +8,8 @@ services:
- 8848:8848 - 8848:8848
container_name: jeecg-boot-nacos container_name: jeecg-boot-nacos
hostname: jeecg-boot-nacos hostname: jeecg-boot-nacos
networks:
- jeecg-boot
jeecg-boot-system: jeecg-boot-system:
depends_on: depends_on:
@ -19,6 +21,8 @@ services:
restart: on-failure restart: on-failure
environment: environment:
- TZ=Asia/Shanghai - TZ=Asia/Shanghai
networks:
- jeecg-boot
jeecg-boot-demo: jeecg-boot-demo:
depends_on: depends_on:
@ -30,6 +34,8 @@ services:
restart: on-failure restart: on-failure
environment: environment:
- TZ=Asia/Shanghai - TZ=Asia/Shanghai
networks:
- jeecg-boot
jeecg-boot-gateway: jeecg-boot-gateway:
restart: on-failure restart: on-failure
@ -42,6 +48,12 @@ services:
- jeecg-boot-system - jeecg-boot-system
container_name: jeecg-boot-gateway container_name: jeecg-boot-gateway
hostname: jeecg-boot-gateway hostname: jeecg-boot-gateway
networks:
- jeecg-boot
networks:
jeecg-boot:
name: jeecg_boot
# jeecg-boot-sentinel: # jeecg-boot-sentinel:
# restart: on-failure # restart: on-failure

Loading…
Cancel
Save