Skip to content

Instantly share code, notes, and snippets.

View kooba's full-sized avatar
👍
shipping

Jakub Borys kooba

👍
shipping
View GitHub Profile
web:
restart: always
build: ./web
expose:
- "8000"
links:
- postgres:postgres
volumes:
- web:/usr/src/app
env_file: .env
SECRET_KEY=2+l!@4@m6y#ck1q*5$z1ua*3%-ayynqfik=2$v@s%*sh+e)*ff
DB_NAME=mycms
DB_USER=mycms_user
DB_PASS=Mycm$_Pa$$
DB_SERVICE=postgres
DB_PORT=5432
# (...)
SECRET_KEY = os.environ['SECRET_KEY']
# (...)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': os.environ['DB_NAME'],
'USER': os.environ['DB_USER'],
'PASSWORD': os.environ['DB_PASS'],
'HOST': os.environ['DB_SERVICE'],
$ virtualenv --version
13.0.3
$ docker -v
Docker version 1.6.2, build 7c8fca2
$ docker-compose --version
docker-compose 1.2.0
$ docker-machine --version
server {
listen 80;
server_name example.org;
charset utf-8;
location /static {
alias /usr/src/app/static;
}
env
.env
*.pyc
FROM tutum/nginx
RUN rm /etc/nginx/sites-enabled/default
ADD sites-enabled/ /etc/nginx/sites-enabled
FROM python:3.4.2-onbuild
NAME ACTIVE DRIVER STATE URL SWARM
mycms-dev * virtualbox Running tcp://192.168.99.100:2376
web:
restart: always
build: ./web
expose:
- "8000"
links:
- postgres:postgres
env_file: .env
command: /usr/local/bin/gunicorn mycms.wsgi:application -w 2 -b :8000