prerobeny container webu na zdielany volume.. mozne menit kod a po restarte kontainera sa prejavia zmeny
This commit is contained in:
@@ -9,9 +9,9 @@ ENV PYTHONDONTWRITEBYTECODE 1
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
|
||||
COPY requirements.txt ${APP_HOME}
|
||||
COPY gunicorn-cfg.py ${APP_HOME}
|
||||
COPY run.sh ${APP_HOME}
|
||||
RUN chmod +x ${APP_HOME}/run.sh
|
||||
#COPY gunicorn-cfg.py ${APP_HOME}
|
||||
#COPY run.sh ${APP_HOME}
|
||||
#RUN chmod +x ${APP_HOME}/run.sh
|
||||
|
||||
|
||||
# install python dependencies
|
||||
|
||||
@@ -36,6 +36,10 @@ services:
|
||||
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
||||
MYSQL_USER: ${MYSQL_USER}
|
||||
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
||||
volumes:
|
||||
- .:/app:rw
|
||||
- ./staticfiles:/app/static
|
||||
- ./mediafiles:/app/media
|
||||
command: bash -c 'cd /app && ./run.sh'
|
||||
depends_on:
|
||||
mysql:
|
||||
|
||||
Reference in New Issue
Block a user