更新 docker
This commit is contained in:
parent
fd1a3d37e6
commit
7a87516d17
2 changed files with 16 additions and 23 deletions
|
|
@ -1,20 +1,20 @@
|
||||||
# ===========================================
|
# ===========================================
|
||||||
# Yao 0.9.22+ MySQL 8.0.27
|
# Yao 0.9.0+ MySQL 8.0.27
|
||||||
# docker build -t yaoapp/yao:0.9.22 .
|
# docker build -t yaoapp/yao:0.9.0 .
|
||||||
# ===========================================
|
# ===========================================
|
||||||
FROM debian:buster-slim
|
FROM debian:buster-slim
|
||||||
RUN groupadd -r yao && useradd -r -g yao yao
|
RUN groupadd -r yao && useradd -r -g yao yao
|
||||||
RUN sed -i 's#http://deb.debian.org#http://mirrors.163.com#g' /etc/apt/sources.list && \
|
RUN sed -i 's#http://deb.debian.org#http://mirrors.163.com#g' /etc/apt/sources.list && \
|
||||||
apt-get update && apt-get install -y curl supervisor sudo procps net-tools && \
|
apt-get update && apt-get install -y curl supervisor sudo procps net-tools && \
|
||||||
mkdir -p /data/app && \
|
mkdir -p /data/app && \
|
||||||
mkdir -p /data/logs && \
|
# mkdir -p /data/logs && \
|
||||||
mkdir -p /data/app/db && \
|
# mkdir -p /data/app/db && \
|
||||||
chown -R yao:yao /data && \
|
# chown -R yao:yao /data && \
|
||||||
echo user=root >> /etc/supervisor/supervisord.conf && \
|
# echo user=root >> /etc/supervisor/supervisord.conf && \
|
||||||
curl -fsSL https://demo-crm.iqka.com/releases/0.9.22/install.sh | bash
|
curl -fsSL https://release.yaoapps.com/install.sh | bash
|
||||||
|
|
||||||
COPY conf/yao.conf /etc/supervisor/conf.d/yao.conf
|
# COPY conf/yao.conf /etc/supervisor/conf.d/yao.conf
|
||||||
COPY conf/yao.env /data/app/.env
|
# COPY conf/yao.env /data/app/.env
|
||||||
VOLUME /data/app
|
VOLUME /data/app
|
||||||
EXPOSE 5099 3321
|
EXPOSE 5099 3321
|
||||||
ENTRYPOINT ["tail"]
|
ENTRYPOINT ["tail"]
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,7 @@
|
||||||
XIANG_MODE="debug"
|
YAO_ENV=production
|
||||||
|
YAO_JWT_SECRET="qffgameana6VLuw4LZ?x"
|
||||||
# 服务器配置
|
YAO_HOST=0.0.0.0
|
||||||
XIANG_SERVICE_HOST=0.0.0.0
|
YAO_PORT=5099
|
||||||
XIANG_SERVICE_PORT=5099
|
YAO_LOG="/data/app/logs/application.log"
|
||||||
XIANG_SESSION_PORT=3321
|
YAO_DB_DRIVER=sqlite3
|
||||||
|
YAO_DB_PRIMARY="/data/app/db/yao.db"
|
||||||
# 数据库配置
|
|
||||||
XIANG_DB_DEBUG=true
|
|
||||||
XIANG_DB_AESKEY="ZLX=T&f6refeCh-ro*r@"
|
|
||||||
|
|
||||||
# JWT配置
|
|
||||||
XIANG_JWT_DEBUG=true
|
|
||||||
XIANG_JWT_SECRET="bLp@bi!oqo-2U+hoTRUG"
|
|
||||||
Loading…
Add table
Reference in a new issue