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/
|
COPY requirements.txt /usr/src/app/
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
RUN python manage.py migrate
|
||||||
|
RUN python manage.py createsuperuser
|
||||||
|
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
ENV PYTHONDONTWRITEBYTECODE 1
|
ENV PYTHONDONTWRITEBYTECODE 1
|
||||||
ENV LANG en_US.UTF-8
|
ENV LANG en_US.UTF-8
|
||||||
ENV PYTHONIOENCODING utf_8
|
ENV PYTHONIOENCODING utf_8
|
||||||
|
|
||||||
|
|
|
@ -5,17 +5,17 @@ web:
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/usr/src/app
|
- ./:/usr/src/app
|
||||||
links:
|
links:
|
||||||
- frontend
|
|
||||||
- postgres
|
- postgres
|
||||||
- elasticsearch
|
- elasticsearch
|
||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "5000:5000"
|
||||||
environment:
|
environment:
|
||||||
- DEBUG=True
|
- DEBUG=${DEBUG}
|
||||||
- DEV=True
|
- DEV=${DEBUG}
|
||||||
- DATABASE_URL=postgres://postgres:@postgres:5432/postgres
|
- DATABASE_URL=postgres://postgres:@postgres:5432/postgres
|
||||||
- ELASTICSEARCH_URL=http://elasticsearch:9200
|
- ELASTICSEARCH_URL=http://elasticsearch:9200
|
||||||
- SECRET_KEY=notasecretreplaceme
|
- SECRET_KEY=${SECRET_KEY}
|
||||||
|
- ALLOWED_HOSTS=${HOSTNAME}
|
||||||
frontend:
|
frontend:
|
||||||
build: .
|
build: .
|
||||||
dockerfile: .dockerfile-frontend
|
dockerfile: .dockerfile-frontend
|
||||||
|
|
Loading…
Reference in a new issue