mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-19 01:15:54 +08:00
添加docker相关文件
This commit is contained in:
@@ -4,21 +4,21 @@ ENV VERSION 1.1
|
||||
ENV AUTHOR kerwincui
|
||||
ENV INFO wumei smart open source living iot platform
|
||||
|
||||
# 安装工具和设置时区 apt install curl -y --no-install-recommends && \
|
||||
RUN apt-get update && \
|
||||
apt-get install vim -y --no-install-recommends && \
|
||||
# 安装工具和设置时区 apt install curl -y --no-install-recommends && \ apt-get install vim -y --no-install-recommends && \
|
||||
RUN apt-get update && \
|
||||
apt-get install wget -y --no-install-recommends && \
|
||||
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||
|
||||
#更换国内源
|
||||
RUN wget http://qiniu.xiwen.online/Debian10.list && \
|
||||
mv Debian10.list /etc/apt/sources.list && \
|
||||
apt update && apt upgrade -y
|
||||
|
||||
# 安装nginx和redis,需要容器内配置nginx和redis
|
||||
# 安装nginx和redis
|
||||
RUN apt-get install nginx -y --no-install-recommends && \
|
||||
apt-get install redis-server -y --no-install-recommends
|
||||
|
||||
# 安装 emqx,需要修改密码
|
||||
# 安装 emqx
|
||||
RUN apt update && apt install -y \
|
||||
apt-transport-https \
|
||||
ca-certificates \
|
||||
@@ -31,7 +31,16 @@ RUN apt update && apt install -y \
|
||||
./bionic \
|
||||
stable" && \
|
||||
apt update && \
|
||||
apt install emqx -y --no-install-recommends
|
||||
apt install emqx=4.0.0 -y --no-install-recommends
|
||||
|
||||
# 修改redis配置
|
||||
RUN sed -i "s/# requirepass foobared/requirepass wumei/g" /etc/redis/redis.conf
|
||||
|
||||
# 复制emqx和Nginx的配置文件
|
||||
COPY ./emqx4.0/emqx.conf /etc/emqx/emqx.conf
|
||||
COPY ./emqx4.0/emqx_auth_http.conf /etc/emqx/plugins/emqx_auth_http.conf
|
||||
COPY ./emqx4.0/emqx_web_hook.conf /etc/emqx/plugins/emqx_web_hook.conf
|
||||
COPY ./nginx.conf /etc/nginx/nginx.conf
|
||||
|
||||
# 挂载卷
|
||||
VOLUME /var/wumei-smart
|
||||
@@ -44,5 +53,5 @@ ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
COPY ./wumei-smart.tar /var/
|
||||
RUN cd /var && tar -xvf wumei-smart.tar && rm wumei-smart.tar
|
||||
|
||||
# 映射端口
|
||||
EXPOSE 80 3306 1883 18083
|
||||
# 映射端口,可选:8081、8883、18083、8083
|
||||
EXPOSE 80 1883 8083
|
||||
Reference in New Issue
Block a user