Skip to content

Commit

Permalink
🐳 Work about Docker. 优化docker-compose network 策略
Browse files Browse the repository at this point in the history
  • Loading branch information
lbw committed Aug 3, 2023
1 parent 4882e33 commit cfaa83c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ services:
image: pig-mysql
ports:
- 3306:3306
networks:
- spring_cloud_default

pig-redis:
image: redis:7.0.0
Expand All @@ -19,6 +21,8 @@ services:
restart: always
container_name: pig-redis
hostname: pig-redis
networks:
- spring_cloud_default

pig-register:
build:
Expand All @@ -29,6 +33,8 @@ services:
container_name: pig-register
hostname: pig-register
image: pig-register
networks:
- spring_cloud_default

pig-gateway:
build:
Expand All @@ -39,6 +45,8 @@ services:
container_name: pig-gateway
hostname: pig-gateway
image: pig-gateway
networks:
- spring_cloud_default

pig-auth:
build:
Expand All @@ -47,6 +55,8 @@ services:
container_name: pig-auth
hostname: pig-auth
image: pig-auth
networks:
- spring_cloud_default

pig-upms:
build:
Expand All @@ -55,6 +65,8 @@ services:
container_name: pig-upms
hostname: pig-upms
image: pig-upms
networks:
- spring_cloud_default

pig-monitor:
build:
Expand All @@ -65,6 +77,8 @@ services:
container_name: pig-monitor
hostname: pig-monitor
image: pig-monitor
networks:
- spring_cloud_default

pig-codegen:
build:
Expand All @@ -73,10 +87,19 @@ services:
container_name: pig-codegen
hostname: pig-codegen
image: pig-codegen
networks:
- spring_cloud_default

pig-daemon-quartz:
build:
context: ./pig-visual/pig-quartz
restart: always
image: pig-quartz
container_name: pig-quartz
networks:
- spring_cloud_default

networks:
spring_cloud_default:
name: spring_cloud_default
driver: bridge

0 comments on commit cfaa83c

Please sign in to comment.