Este commit está contenido en:
Your Name
2020-05-27 18:34:35 +00:00
padre 16f6052fdd
commit 6f5d5e501c
Se han modificado 6 ficheros con 253 adiciones y 0 borrados

Ver fichero

@@ -0,0 +1,19 @@
FROM node:12-slim
ENV VERSION latest
RUN apt update && apt -y upgrade && apt -y install \
build-essential \
curl \
wget \
rsync \
git \
xz-utils \
ca-certificates \
procps \
python \
&& apt clean
WORKDIR /home/node
USER node
RUN wget -q https://releases.rocket.chat/$VERSION/download && tar -zxf download && rm download
WORKDIR /home/node/bundle/programs/server
RUN npm install && mkdir /home/node/uploads
WORKDIR /home/node/bundle

Ver fichero

@@ -0,0 +1,11 @@
#!/bin/bash
export ROOT_URL="https://talk.hatthieves.es"
export PORT=3000
export MAIL_URL="smtp.hatthieves.es"
export Accounts_UseDNSDomainCheck="False"
export NODE_ENV="production"
export Accounts_AvatarStorePath="/home/rocketchat/uploads"
export MONGO_URL="mongodb://rocket:p4%24%24w0rd@db-rocketchat1:27017,db-rocketchat2:27017/rocketchat?authSource=admin&replicaSet=rs0&readPreference=nearest&w=majority"
export MONGO_OPLOG_URL="mongodb://oploguser:p4%24%24w0rd@db-rocketchat1:27017,db-rocketchat2:27017/local?authSource=admin&replicaSet=rs0"
export INSTANCE_IP="172.133.0.101"
node main.js