diff --git a/build-docker/dbswitch/dbswitch-release/conf/application.yml b/build-docker/dbswitch/dbswitch-release/conf/application.yml index bd0e402e..62b3ee7a 100644 --- a/build-docker/dbswitch/dbswitch-release/conf/application.yml +++ b/build-docker/dbswitch/dbswitch-release/conf/application.yml @@ -12,7 +12,7 @@ spring: static-path-pattern: /statics/** datasource: driver-class-name: com.mysql.jdbc.Driver - url: jdbc:mysql://${MYSQLDB_HOST:dbswitch_mysqldb}:${MYSQLDB_PORT:3306}/dbswitch?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=UTF8&autoReconnect=true&useSSL=false&allowMultiQueries=true&failOverReadOnly=false&connectTimeout=30000 + url: jdbc:mysql://${MYSQLDB_HOST:dbswitch_mysqldb}:${MYSQLDB_PORT:3306}/${MYSQLDB_NAME:dbswitch}?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=UTF8&autoReconnect=true&useSSL=false&allowMultiQueries=true&failOverReadOnly=false&connectTimeout=30000 username: ${MYSQLDB_USERNAME:tangyibo} password: ${MYSQLDB_PASSWORD:123456} validation-query: SELECT 1 @@ -32,4 +32,4 @@ mybatis: dbswitch: configuration: - drivers-base-path: ${APP_DRIVERS_PATH} \ No newline at end of file + drivers-base-path: ${APP_DRIVERS_PATH} diff --git a/build-docker/install/docker-compose.yml b/build-docker/install/docker-compose.yml index af4870f8..3934d291 100644 --- a/build-docker/install/docker-compose.yml +++ b/build-docker/install/docker-compose.yml @@ -1,4 +1,3 @@ -version: '3.3' services: mysqldb: container_name: dbswitch_mysqldb @@ -25,6 +24,7 @@ services: MYSQLDB_PORT: 3306 MYSQLDB_USERNAME: tangyibo MYSQLDB_PASSWORD: 123456 + MYSQLDB_NAME: dbswitch volumes: - /tmp:/tmp ports: @@ -32,4 +32,3 @@ services: depends_on: mysqldb: condition: service_healthy -