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

This commit is contained in:
冷冷 2024-05-20 22:33:26 +08:00
parent 1a7fb4d8c5
commit 093cbb9872

View File

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