Skip to content

Commit

Permalink
Merge pull request #5659 from EightMonth/master
Browse files Browse the repository at this point in the history
修改docker-compose文件添加network配置
  • Loading branch information
zhangdaiscott authored Dec 12, 2023
2 parents a854991 + 480878a commit a406c7c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions jeecg-server-cloud/docker-compose-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ services:
--default-authentication-plugin=caching_sha2_password
ports:
- 3306:3306
networks:
- jeecg-boot

jeecg-boot-redis:
image: redis:5.0
Expand All @@ -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
Expand Down
12 changes: 12 additions & 0 deletions jeecg-server-cloud/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ services:
- 8848:8848
container_name: jeecg-boot-nacos
hostname: jeecg-boot-nacos
networks:
- jeecg-boot

jeecg-boot-system:
depends_on:
Expand All @@ -19,6 +21,8 @@ services:
restart: on-failure
environment:
- TZ=Asia/Shanghai
networks:
- jeecg-boot

jeecg-boot-demo:
depends_on:
Expand All @@ -30,6 +34,8 @@ services:
restart: on-failure
environment:
- TZ=Asia/Shanghai
networks:
- jeecg-boot

jeecg-boot-gateway:
restart: on-failure
Expand All @@ -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
Expand Down

0 comments on commit a406c7c

Please sign in to comment.