🐳 docker-compose.yml 默认不暴露 3306 6369 端口

This commit is contained in:
冷冷 2024-05-20 22:31:08 +08:00
parent 990dfd13ef
commit 1a7fb4d8c5

View File

@ -10,14 +10,14 @@ services:
container_name: pig-mysql container_name: pig-mysql
image: pig-mysql image: pig-mysql
ports: ports:
- 3306:3306 # - 3306:3306
networks: networks:
- spring_cloud_default - spring_cloud_default
pig-redis: pig-redis:
image: redis:7.2.4 image: redis:7.2.4
ports: ports:
- 6379:6379 # - 6379:6379
restart: always restart: always
container_name: pig-redis container_name: pig-redis
hostname: pig-redis hostname: pig-redis