🐛 修复菜单管理页面的异常

pull/73/head
ruibaby 2018-12-28 22:50:31 +08:00
parent 26f11092a8
commit 367ec29183
2 changed files with 6 additions and 2 deletions

View File

@ -3,7 +3,9 @@ LABEL maintainer="Ryan Wang<i@ryanc.cc>"
WORKDIR /opt/halo
ADD . /tmp
ENV TZ=Asia/Shanghai
ENV TZ=Asia/Shanghai \
DB_USER="admin" \
DB_PASSWORD="123456"
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
@ -12,4 +14,4 @@ RUN cd /tmp && mvn package -Pci && mv target/dist/halo/* /opt/halo/ \
EXPOSE 8090
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/opt/halo/halo-latest.jar","--spring.profiles.active=docker"]
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/opt/halo/halo-latest.jar","--spring.datasource.username=$DB_USER","--spring.datasource.password=$DB_PASSWORD"]

View File

@ -25,6 +25,8 @@ services:
- VIRTUAL_HOST=localhost #监听的地址
- LETSENCRYPT_HOST=localhost #证书的域名
- LETSENCRYPT_EMAIL=i@example.com #证书所有者的邮箱,快过期时会提醒
- DB_USER=admin
- DB_PASSWORD=123456
volumes:
- ~/halo:/root/halo