1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-08-01 16:38:02 +08:00

去掉自定义的mysql镜像

This commit is contained in:
lecjy 2023-10-13 23:50:21 +08:00
parent 64387b8a8e
commit 974e1397b3
5 changed files with 3 additions and 12 deletions

View File

@ -210,7 +210,7 @@ services:
- rabbitmq
mysql:
image: cskefu/mysql-8.1:nacos
image: mysql:8.1
container_name: mysql
restart: always
environment:
@ -222,6 +222,7 @@ services:
- 3306
volumes:
- ./mysql/data:/var/lib/mysql
- ./mysql/nacos.sql:/docker-entrypoint-initdb.d/nacos.sql
command: --max_allowed_packet=32505856
# https://hub.docker.com/r/nacos/nacos-server

View File

@ -1,7 +0,0 @@
FROM mysql:8.1
ADD nacos_mysql.sql /nacos/nacos_mysql.sql
CMD ["mysqld"]
CMD ["mysql -uroot -p$MYSQL_ROOT_PASSWORD nacos_config < /nacos/nacos_mysql.sql"]

View File

@ -1,12 +1,9 @@
#!/bin/bash
docker build -f openjdk-21-debian-stretch-slim -t openjdk-21:debian-stretch-slim .
docker build -f mysql-8.1-nacos -t mysql-8.1:nacos .
docker tag openjdk-21:debian-stretch-slim cskefu/openjdk-21:debian-stretch-slim
docker tag mysql-8.1:nacos cskefu/mysql-8.1:nacos
docker login
docker push cskefu/openjdk-21:debian-stretch-slim
docker push cskefu/mysql-8.1:nacos

View File

@ -2,7 +2,7 @@
- Java21
- Spring Boot 3
- Spring Cloud两种方案采纳的是方案一
- Spring Cloud两种方案采纳方案一
- 方案一Spring Clouddocker-compose方案
- 注册中心 Nacos
- 声明式服务调用 OpenFeign