Revised compose
This commit is contained in:
parent
3d9823876a
commit
9d607b1ee7
3 changed files with 8 additions and 4 deletions
|
@ -6,7 +6,11 @@ WORKDIR /usr/src/app
|
|||
COPY requirements.txt /usr/src/app/
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
RUN python manage.py migrate
|
||||
RUN python manage.py createsuperuser
|
||||
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
ENV LANG en_US.UTF-8
|
||||
ENV PYTHONIOENCODING utf_8
|
||||
|
||||
|
|
|
@ -5,17 +5,17 @@ web:
|
|||
volumes:
|
||||
- ./:/usr/src/app
|
||||
links:
|
||||
- frontend
|
||||
- postgres
|
||||
- elasticsearch
|
||||
ports:
|
||||
- "5000:5000"
|
||||
environment:
|
||||
- DEBUG=True
|
||||
- DEV=True
|
||||
- DEBUG=${DEBUG}
|
||||
- DEV=${DEBUG}
|
||||
- DATABASE_URL=postgres://postgres:@postgres:5432/postgres
|
||||
- ELASTICSEARCH_URL=http://elasticsearch:9200
|
||||
- SECRET_KEY=notasecretreplaceme
|
||||
- SECRET_KEY=${SECRET_KEY}
|
||||
- ALLOWED_HOSTS=${HOSTNAME}
|
||||
frontend:
|
||||
build: .
|
||||
dockerfile: .dockerfile-frontend
|
||||
|
|
Loading…
Reference in a new issue