organize docker conf files

This commit is contained in:
simon 2022-01-26 20:05:52 +07:00
parent b6f9fb58ad
commit 2eea07c85e
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
4 changed files with 6 additions and 6 deletions

View File

@ -35,12 +35,12 @@ COPY ./tubearchivist/requirements.txt /requirements.txt
RUN pip install --no-cache-dir -r requirements.txt --src /usr/local/src RUN pip install --no-cache-dir -r requirements.txt --src /usr/local/src
# copy config files # copy config files
COPY nginx.conf /etc/nginx/conf.d/ COPY docker_assets/nginx.conf /etc/nginx/conf.d/
# copy application into container # copy application into container
COPY ./tubearchivist /app COPY ./tubearchivist /app
COPY ./run.sh /app COPY ./docker_assets/run.sh /app
COPY ./uwsgi.ini /app COPY ./docker_assets/uwsgi.ini /app
# volumes # volumes
VOLUME /cache VOLUME /cache

View File

@ -2,9 +2,9 @@
# startup script inside the container for tubearchivist # startup script inside the container for tubearchivist
# check environment # check environment
if [[ -z "$DJANGO_DEBUG" ]]; then # if [[ -z "$DJANGO_DEBUG" ]]; then
export DJANGO_DEBUG=False # export DJANGO_DEBUG=False
fi # fi
if [[ -z "$ELASTIC_USER" ]]; then if [[ -z "$ELASTIC_USER" ]]; then
export ELASTIC_USER=elastic export ELASTIC_USER=elastic