Rename WEB_PORT to TFW_WEB_PORT

This commit is contained in:
Bálint Bokros 2018-01-10 16:52:03 +01:00
parent 0b8542fc39
commit 729ced323d
2 changed files with 3 additions and 3 deletions

View File

@ -22,6 +22,8 @@ RUN curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/p
pyenv global ${PYTHON_VERSION} && \ pyenv global ${PYTHON_VERSION} && \
pip install tornado pyzmq transitions pip install tornado pyzmq transitions
ENV TFW_WEB_PORT=4242
EXPOSE ${TFW_WEB_PORT}
ENV TFW_APP_DIR="/srv/app" ENV TFW_APP_DIR="/srv/app"
COPY src/app ${TFW_APP_DIR} COPY src/app ${TFW_APP_DIR}
@ -39,7 +41,5 @@ ENV TFW_SUPERVISORD_CONF="/etc/supervisor/supervisord.conf"
ENV TFW_SUPERVISOR_HTTP_PORT=9001 ENV TFW_SUPERVISOR_HTTP_PORT=9001
COPY supervisord.conf ${TFW_SUPERVISORD_CONF} COPY supervisord.conf ${TFW_SUPERVISORD_CONF}
ENV WEB_PORT=4242
EXPOSE ${WEB_PORT}
CMD . "$HOME/.pyenvrc" && exec supervisord --nodaemon CMD . "$HOME/.pyenvrc" && exec supervisord --nodaemon

View File

@ -2,7 +2,7 @@ import os
PUBLISHER_PORT = os.getenv('PUBLISHER_PORT', 7654) PUBLISHER_PORT = os.getenv('PUBLISHER_PORT', 7654)
RECEIVER_PORT = os.getenv('RECEIVER_PORT', 8765) RECEIVER_PORT = os.getenv('RECEIVER_PORT', 8765)
WEB_PORT = os.getenv('WEB_PORT', 4242) WEB_PORT = os.getenv('TFW_WEB_PORT', 4242)
SUPERVISOR_HTTP_PORT = os.getenv('TFW_SUPERVISOR_PORT', 9001) SUPERVISOR_HTTP_PORT = os.getenv('TFW_SUPERVISOR_PORT', 9001)
LOGIN_APP_PORT= os.getenv('TFW_LOGIN_APP_PORT', 6666) LOGIN_APP_PORT= os.getenv('TFW_LOGIN_APP_PORT', 6666)