mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-22 12:48:58 +08:00
🐳 Work about Docker. 优化docker-compose network 策略
This commit is contained in:
parent
4882e3323a
commit
cfaa83c798
@ -11,6 +11,8 @@ services:
|
|||||||
image: pig-mysql
|
image: pig-mysql
|
||||||
ports:
|
ports:
|
||||||
- 3306:3306
|
- 3306:3306
|
||||||
|
networks:
|
||||||
|
- spring_cloud_default
|
||||||
|
|
||||||
pig-redis:
|
pig-redis:
|
||||||
image: redis:7.0.0
|
image: redis:7.0.0
|
||||||
@ -19,6 +21,8 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
container_name: pig-redis
|
container_name: pig-redis
|
||||||
hostname: pig-redis
|
hostname: pig-redis
|
||||||
|
networks:
|
||||||
|
- spring_cloud_default
|
||||||
|
|
||||||
pig-register:
|
pig-register:
|
||||||
build:
|
build:
|
||||||
@ -29,6 +33,8 @@ services:
|
|||||||
container_name: pig-register
|
container_name: pig-register
|
||||||
hostname: pig-register
|
hostname: pig-register
|
||||||
image: pig-register
|
image: pig-register
|
||||||
|
networks:
|
||||||
|
- spring_cloud_default
|
||||||
|
|
||||||
pig-gateway:
|
pig-gateway:
|
||||||
build:
|
build:
|
||||||
@ -39,6 +45,8 @@ services:
|
|||||||
container_name: pig-gateway
|
container_name: pig-gateway
|
||||||
hostname: pig-gateway
|
hostname: pig-gateway
|
||||||
image: pig-gateway
|
image: pig-gateway
|
||||||
|
networks:
|
||||||
|
- spring_cloud_default
|
||||||
|
|
||||||
pig-auth:
|
pig-auth:
|
||||||
build:
|
build:
|
||||||
@ -47,6 +55,8 @@ services:
|
|||||||
container_name: pig-auth
|
container_name: pig-auth
|
||||||
hostname: pig-auth
|
hostname: pig-auth
|
||||||
image: pig-auth
|
image: pig-auth
|
||||||
|
networks:
|
||||||
|
- spring_cloud_default
|
||||||
|
|
||||||
pig-upms:
|
pig-upms:
|
||||||
build:
|
build:
|
||||||
@ -55,6 +65,8 @@ services:
|
|||||||
container_name: pig-upms
|
container_name: pig-upms
|
||||||
hostname: pig-upms
|
hostname: pig-upms
|
||||||
image: pig-upms
|
image: pig-upms
|
||||||
|
networks:
|
||||||
|
- spring_cloud_default
|
||||||
|
|
||||||
pig-monitor:
|
pig-monitor:
|
||||||
build:
|
build:
|
||||||
@ -65,6 +77,8 @@ services:
|
|||||||
container_name: pig-monitor
|
container_name: pig-monitor
|
||||||
hostname: pig-monitor
|
hostname: pig-monitor
|
||||||
image: pig-monitor
|
image: pig-monitor
|
||||||
|
networks:
|
||||||
|
- spring_cloud_default
|
||||||
|
|
||||||
pig-codegen:
|
pig-codegen:
|
||||||
build:
|
build:
|
||||||
@ -73,6 +87,8 @@ services:
|
|||||||
container_name: pig-codegen
|
container_name: pig-codegen
|
||||||
hostname: pig-codegen
|
hostname: pig-codegen
|
||||||
image: pig-codegen
|
image: pig-codegen
|
||||||
|
networks:
|
||||||
|
- spring_cloud_default
|
||||||
|
|
||||||
pig-daemon-quartz:
|
pig-daemon-quartz:
|
||||||
build:
|
build:
|
||||||
@ -80,3 +96,10 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
image: pig-quartz
|
image: pig-quartz
|
||||||
container_name: pig-quartz
|
container_name: pig-quartz
|
||||||
|
networks:
|
||||||
|
- spring_cloud_default
|
||||||
|
|
||||||
|
networks:
|
||||||
|
spring_cloud_default:
|
||||||
|
name: spring_cloud_default
|
||||||
|
driver: bridge
|
||||||
|
Loading…
Reference in New Issue
Block a user