Commit b3d10a77 authored by lizonr1's avatar lizonr1

Add docker

parent 795f84f4
...@@ -49,10 +49,6 @@ coverage.xml ...@@ -49,10 +49,6 @@ coverage.xml
# Sphinx documentation # Sphinx documentation
docs/_build/ docs/_build/
# Docker
docker-compose.ymk
Dockerfile
# Logs stuff # Logs stuff
*.out *.out
migrations/ migrations/
\ No newline at end of file
FROM python:3.4
MAINTAINER rafal
RUN mkdir /project
WORKDIR /project
ADD requirements.txt /project/
RUN pip install -r requirements.txt
ADD . /project/
RUN pip install -r requirements.txt
WORKDIR /project/KawowyDzienniczek
CMD [ "python3", "manage.py", "runserver"]
EXPOSE 8000
\ No newline at end of file
version: '2'
services:
db:
image: postgres
web:
build: .
command: python3 manage.py runserver 0.0.0.0:8000
volumes:
- .:/project
ports:
- "8000:8000"
depends_on:
- db
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment