| | |
| | | RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime |
| | | RUN echo 'Asia/Shanghai' >/etc/timezone |
| | | EXPOSE 5001 |
| | | ENV JAVA_OPTS="-Xmx400m -Xms400m -Djava.security.egd=file:/dev/./urandom" |
| | | # 配置容器启动后执行的命令 |
| | | ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -jar /server.jar","--spring.profiles.active=prod"] |
| | | |
| | | #ENTRYPOINT ["java","-Xmx400m","-Xms400m", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/server.jar", "--spring.profiles.active=prod"] |
| | | ENTRYPOINT ["java","-Xmx400m","-Xms400m", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/server.jar", "--spring.profiles.active=prod"] |
| | |
| | | spring: |
| | | profiles: dev |
| | | datasource: |
| | | url: jdbc:mysql://192.168.5.102:3306/jyxtravel-sjdb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai |
| | | url: jdbc:mysql://127.0.0.1:3306/kuanzhaiyx?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai |
| | | username: root |
| | | password: 123456 |
| | | db-name: jyxtravel-sjdb #用来搜集数据库的所有表 |
| | | db-name: kuanzhaiyx #用来搜集数据库的所有表 |
| | | filters: wall,mergeStat |
| | | #多数据源情况的配置 |
| | | guns: |
| | | muti-datasource: |
| | | open: false |
| | | url: jdbc:mysql://127.0.0.1:3306/kuanzhaiyx?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8 |
| | | url: jdbc:mysql://127.0.0.1:3306/kuanzhaiyx?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai |
| | | username: root |
| | | # password: Root2020! |
| | | password: 123456 |
| | |
| | | spring: |
| | | profiles: prod |
| | | datasource: |
| | | url: jdbc:mysql://127.0.0.1:3306/kuanzhaiyx?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&allowPublicKeyRetrieval=true&&serverTimezone=Asia/Shanghai |
| | | url: jdbc:mysql://122.9.140.208:10010/kuanzhaiyx?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai |
| | | username: root |
| | | password: kuanzhaiyx |
| | | db-name: kuanzhaiyx #用来搜集数据库的所有表 |
| | | password: 123456 |
| | | db-name: 123456 #用来搜集数据库的所有表 |
| | | filters: wall,mergeStat |
| | | #多数据源情况的配置 |
| | | guns: |
| | | muti-datasource: |
| | | open: false |
| | | url: jdbc:mysql://127.0.0.1:3306/kuanzhaiyx?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=GMT%2B8 |
| | | url: jdbc:mysql://122.9.140.208:10010/kuanzhaiyx?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai |
| | | username: root |
| | | # password: Root2020! |
| | | password: 123456 |