mirror of
https://github.com/fergalmoran/dss.api.git
synced 2026-01-08 17:44:01 +00:00
Added docker files
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal 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
11
docker-compose.yml
Normal 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
|
||||
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user