Sign inSign up

geekyouth/dbswitch

By geekyouth

Updated almost 3 years ago

Image
0

122

geekyouth/dbswitch repository overview

**1.9.1 新增支持 环境变量 MYSQLDB_NAME **

services:
  dbswitch:
    container_name: dbswitch_webui
    image: geekyouth/dbswitch:1.9.1
    environment:
      MYSQLDB_HOST: 192.168.3.174
      MYSQLDB_PORT: 3306
      MYSQLDB_NAME: dbswitch_dev
      MYSQLDB_USERNAME: dbswitch_dev
      MYSQLDB_PASSWORD: dbswitch_dev
    volumes:
      - /tmp:/tmp   
    ports:
      - 9088:9088

主要改动的源码内容:

build-docker/dbswitch/dbswitch-release/conf/application.yml

    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

详见 issue: https://gitee.com/dromara/dbswitch/issues/I8MH14

Tag summary

Content type

Image

Digest

sha256:e7a0664f6

Size

215.4 MB

Last updated

almost 3 years ago

docker pull geekyouth/dbswitch:1.9.1