Skip to content

Commit

Permalink
更新 docker
Browse files Browse the repository at this point in the history
  • Loading branch information
trheyi committed Feb 9, 2022
1 parent fd1a3d3 commit 7a87516
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 23 deletions.
18 changes: 9 additions & 9 deletions docker/yao/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# ===========================================
# Yao 0.9.22+ MySQL 8.0.27
# docker build -t yaoapp/yao:0.9.22 .
# Yao 0.9.0+ MySQL 8.0.27
# docker build -t yaoapp/yao:0.9.0 .
# ===========================================
FROM debian:buster-slim
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 && \
apt-get update && apt-get install -y curl supervisor sudo procps net-tools && \
mkdir -p /data/app && \
mkdir -p /data/logs && \
mkdir -p /data/app/db && \
chown -R yao:yao /data && \
echo user=root >> /etc/supervisor/supervisord.conf && \
curl -fsSL https://demo-crm.iqka.com/releases/0.9.22/install.sh | bash
# mkdir -p /data/logs && \
# mkdir -p /data/app/db && \
# chown -R yao:yao /data && \
# echo user=root >> /etc/supervisor/supervisord.conf && \
curl -fsSL https://release.yaoapps.com/install.sh | bash

COPY conf/yao.conf /etc/supervisor/conf.d/yao.conf
COPY conf/yao.env /data/app/.env
# COPY conf/yao.conf /etc/supervisor/conf.d/yao.conf
# COPY conf/yao.env /data/app/.env
VOLUME /data/app
EXPOSE 5099 3321
ENTRYPOINT ["tail"]
Expand Down
21 changes: 7 additions & 14 deletions docker/yao/conf/yao.env
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
XIANG_MODE="debug"

# 服务器配置
XIANG_SERVICE_HOST=0.0.0.0
XIANG_SERVICE_PORT=5099
XIANG_SESSION_PORT=3321

# 数据库配置
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"
YAO_ENV=production
YAO_JWT_SECRET="qffgameana6VLuw4LZ?x"
YAO_HOST=0.0.0.0
YAO_PORT=5099
YAO_LOG="/data/app/logs/application.log"
YAO_DB_DRIVER=sqlite3
YAO_DB_PRIMARY="/data/app/db/yao.db"

0 comments on commit 7a87516

Please sign in to comment.