Added docker files

This commit is contained in:
Fergal Moran
2015-07-23 18:23:43 +00:00
parent 3b19f19708
commit df4d14a6f7
4 changed files with 26 additions and 4 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM python:2.7
ENV PYTHONBUFFERED 1
RUN mkdir /code
RUN mkdir /files/static
RUN mkdir /files/media
RUN mkdir /files/cache
RUN mkdir /files/tmp
WORKDIR /code
ADD requirements.txt /code/
RUN pip install -r requirements.txt
ADD . /code/

11
docker-compose.yml Normal file
View File

@@ -0,0 +1,11 @@
db:
image: postgres
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- "8000:8000"
links:
- db

View File

@@ -117,7 +117,6 @@ INSTALLED_APPS = (
'corsheaders',
'sorl.thumbnail',
'spa',
'tinymce',
'gunicorn',
'spa.signals',
'core',
@@ -223,4 +222,4 @@ JWT_AUTH = {
'JWT_EXPIRATION_DELTA': timedelta(seconds=900),
'JWT_ALLOW_REFRESH': True,
'JWT_REFRESH_EXPIRATION_DELTA': timedelta(days=30),
}
}

View File

@@ -26,7 +26,6 @@ git+git://github.com/tschellenbach/Django-facebook.git#django-facebook
git+git://github.com/llazzaro/django-scheduler.git#django-scheduler
git+git://github.com/omab/python-social-auth.git#egg=python-social-auth
django-allauth
django-tinymce
apache-libcloud
mandrill
djrill
@@ -43,4 +42,4 @@ mutagen
django-enumfield
ipython
ipdb
ipdb