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
# copy config files
COPY nginx.conf /etc/nginx/conf.d/
COPY docker_assets/nginx.conf /etc/nginx/conf.d/
# copy application into container
COPY ./tubearchivist /app
COPY ./run.sh /app
COPY ./uwsgi.ini /app
COPY ./docker_assets/run.sh /app
COPY ./docker_assets/uwsgi.ini /app
# volumes
VOLUME /cache

View File

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