django:
build:
context: .
dockerfile: Dockerfile
container_name: django
command: gunicorn my_project.wsgi:application --bind 0.0.0.0:8005
volumes:
- ./soyeon_pj/static:/staticfiles
- ./nginx:/etc/nginx/conf.d
expose:
- "8005"
depends_on:
- maria_db
gunicorn my_project.wsgi:application --bind 0.0.0.0:8005
임
RUN apt-get install -y wget
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
RUN ["chmod", "+x", "./docker-entrypoint.sh"]
ENTRYPOINT ["./docker-entrypoint.sh"]
도커파일에서 dockerize를 실행함.
해당 에러는
if not settings.DEBUG and not settings.ALLOWED_HOSTS:
The SECRET_KEY setting must not be empty.
SECRET_KEY 세팅이 없다고 나옴 ???!!!