Commit 41bf8032 authored by ecobytes's avatar ecobytes

init

parents
*.env
settings.py
src/
# start from an official image
FROM python:2.7
# arbitrary location choice: you can change the directory
RUN mkdir -p /opt/services/ecobasa
WORKDIR /opt/services/ecobasa
# install our dependencies
ADD ./requirements.txt /opt/services/ecobasa/requirements.txt
RUN pip install -r requirements.txt
# copy our project code
COPY ./src /opt/services/ecobasa/
# expose the port 8000
EXPOSE 8000
# define the default command to run when starting the container
CMD ["gunicorn", "--bind", ":8000", "ecobasa.wsgi:application"]
version: '2'
networks:
frontend-web:
external: true
backend:
driver: bridge
services:
database:
image: postgres:10
volumes:
- /data/bases/ecobasa.org/data:/var/lib/postgresql/data
# - ./django.sql:/docker-entrypoint-initdb.d/django.sql
env_file:
- ./postgres.env
networks:
- backend
#logging:
# driver: none
django:
build: .
volumes:
# - ./src/:/opt/services/ecobasa/
- ./settings.py:/opt/services/ecobasa/ecobasa/settings.py
depends_on:
- database
networks:
- backend
#logging:
# driver: none
nginx:
image: nginx
expose: ["80"]
env_file:
- ./frontend.env
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- ./src/static-collected:/opt/services/ecobasa/static
- ./src/media:/opt/services/ecobasa/media
depends_on:
- django
networks:
- backend
- frontend-web
#logging:
# driver: none
VIRTUAL_HOST=
VIRTUAL_PORT=80
LETSENCRYPT_HOST=
LETSENCRYPT_EMAIL=
upstream ecobasa {
server django:8000;
}
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://ecobasa;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
location /static/ {
alias /opt/services/ecobasa/static/;
expires 1M;
access_log off;
add_header Cache-Control "public";
proxy_ignore_headers "Set-Cookie";
}
location /media/ {
alias /opt/services/ecobasa/media/;
expires 1M;
access_log off;
add_header Cache-Control "public";
proxy_ignore_headers "Set-Cookie";
}
}
POSTGRES_USER=
POSTGRES_PASSWORD=
POSTGRES_DB=
cmsplugin-filer==0.9.5
contextlib2==0.5.5
-e git+https://git.sinnwerkstatt.com/cosinnus/cosinnus-core.git@3be63e6d342eb726b94498ddfd66ed3f3893ff30#egg=cosinnus
-e git+https://git.sinnwerkstatt.com/cosinnus/cosinnus-etherpad.git@02f7be710b2586b854f8a674c41940d91b53c2a8#egg=cosinnus_etherpad
-e git+https://git.sinnwerkstatt.com/cosinnus/cosinnus-event.git@3040a052a255c1014779449200647d633e9f5bbb#egg=cosinnus_event
-e git+https://git.sinnwerkstatt.com/cosinnus/cosinnus-message.git@10d2ddca591fdd68e82f92759679c0ee3e782d49#egg=cosinnus_message
-e git+https://git.sinnwerkstatt.com/cosinnus/cosinnus-note.git@6d8e26969936536d5cb5c6900b7606579caefd29#egg=cosinnus_note
-e git+https://git.sinnwerkstatt.com/cosinnus/cosinnus-todo.git@37cc10b7c490e58e42af5c1bcd659ea495c0b043#egg=cosinnus_todo
Django==1.5.8
django-appconf==1.0.1
-e git://github.com/Markush2010/django-bootstrap3.git@46a84044e89937ebe6128b2a8c560f141741a70e#egg=django_bootstrap3
django-bootstrap3-datetimepicker==2.2.3
django-classy-tags==0.6.2
django-cms==2.4.3
django-contact-form==1.0
django-embed-video==1.1.2
django-extensions==1.5.9
django-extra-views==0.7.1
django-filer==0.9.5
django-geoposition==0.3.0
django-haystack==2.1.0
django-honeypot==0.4.0
django-mptt==0.5.2
-e git://github.com/bmispelon/django-multiform.git@ccc958db8daeba6044ec18c5ff6b158bc6a3d135#egg=django_multiform
-e git://github.com/sinnwerkstatt/django-osm-field.git@81dd297034716b110441da38cb72ba26d3a51896#egg=django_osm_field
django-polymorphic==0.7.2
django-postman==3.1.0
django-recaptcha==0.0.9
django-sekizai==0.7
Django-Select2==4.2.2
django-settings-export==1.2.1
django-suit==0.2.8
django-taggit==0.17.1
django-tinymce==1.5.2
django-userprofiles==0.4
django-widget-tweaks==1.3
djangocms-text-ckeditor==1.0.11
djangorestframework==3.2.4
easy-thumbnails==1.4
ecdsa==0.13
etherpad-lite==0.2.1
Fabric==1.8.3
fabric-virtualenv==0.2.1
gunicorn==19.7.1
html5lib==0.9999
paramiko==1.12.4
Pillow==3.0.0
piwik==0.5.1
psycopg2==2.7.1
pycrypto==2.6.1
pytz==2015.6
raven==6.1.0
requests==2.8.0
simplejson==3.10.0
six==1.10.0
South==0.8.4
Whoosh==2.6.0
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