修改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
ports:
- 3306:3306
networks:
- jeecg-boot
jeecg-boot-redis:
image: redis:5.0
@ -26,6 +28,13 @@ services:
restart: always
container_name: jeecg-boot-redis
hostname: jeecg-boot-redis
networks:
- jeecg-boot
networks:
jeecg-boot:
name: jeecg_boot
# jeecg-boot-rabbitmq:
# image: rabbitmq:3.7.7-management

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

Loading…
Cancel
Save