fmartingr
/
jeeves
Archived
1
0
Fork 0

Added docker-compose

This commit is contained in:
Felipe Martin 2019-09-30 17:52:23 +02:00
parent a35dfc6b3d
commit 96a4834fc0
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
2 changed files with 26 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM python:3
ENV PYTHONUNBUFFERED 1
WORKDIR /opt/app
ADD . /opt/app
RUN pip install poetry && \
poetry install
CMD ["poetry", "run", "python", "manage.py", "runserver", "0.0.0.0:8000"]

15
docker-compose.yml Normal file
View File

@ -0,0 +1,15 @@
version: "3"
services:
backend:
build: .
restart: always
volumes:
- .:/opt/app
ports:
- 8000:8000
depends_on:
- redis
redis:
image: redis:5