add auth to mongodb connection

This commit is contained in:
Marvin Zhang
2019-06-12 21:23:22 +08:00
parent 14cb437112
commit 5d43b8a72f
2 changed files with 8 additions and 6 deletions

View File

@@ -30,13 +30,13 @@ ENV NODE_PATH $NVM_DIR/versions/node/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
# install frontend
RUN npm install -g yarn --registry=https://registry.npm.taobao.org \
RUN npm install -g yarn \
&& cd /opt/crawlab/frontend \
&& yarn install --registry=https://registry.npm.taobao.org
&& yarn install
# install backend
RUN pip install -U setuptools -i https://pypi.tuna.tsinghua.edu.cn/simple \
&& pip install -r /opt/crawlab/crawlab/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip install -U setuptools \
&& pip install -r /opt/crawlab/crawlab/requirements.txt
# start backend
EXPOSE 8080