Updated configuration

This commit is contained in:
Oliver Marks 2018-01-27 12:43:12 +00:00
parent 2b8fd8b73f
commit 08b932d9af
6 changed files with 8 additions and 18 deletions

View File

@ -98,7 +98,12 @@ return response.status_code
Example service setup for website under docker, nginx in a container forwarding traffic to uwsgi.
*** nginx web server
#+BEGIN_SRC bash
docker run --name=nginx -d -v /etc/nginx/sites-enabled/:/etc/nginx/sites-enabled/ -v /etc/letsencrypt/:/etc/letsencrypt/ -v /var/www/:/var/www/ -v sockets:/data/sockets -p 80:80 -p 443:443 olymk2/nginx
docker volume create --name=sockets
docker run --name=nginx -d \
-v /etc/nginx/sites-enabled/:/etc/nginx/sites-enabled/ \
-v /etc/letsencrypt/:/etc/letsencrypt/ \
-v /var/www/:/var/www/ \
-v sockets:/data/sockets -p 80:80 -p 443:443 olymk2/nginx
#+END_SRC
*** letsencrypt cert setup
Setup / create new certs

View File

@ -1,4 +1,4 @@
FROM python:3.5
FROM python:3.6
ENV PYTHONUNBUFFERED 1

View File

@ -1,5 +1,4 @@
#!/bin/sh
#rm -R /app/staticfiles/*
#python /app/manage.py collectstatic --noinput
#python /app/manage.py compilescss

View File

@ -1,4 +1,4 @@
FROM postgres:9.6
FROM postgres:10
# add backup scripts
ADD backup.sh /usr/local/bin/backup

View File

@ -55,10 +55,3 @@ services:
- postgres
- redis
command: celery -A mhackspace.celeryapp beat -l INFO
bucket:
image: minio/minio
env_file: .env
volumes:
- ./buckets:/data
command: server /data

View File

@ -56,10 +56,3 @@ services:
- postgres
- redis
command: celery -A mhackspace.celeryapp beat -l INFO
bucket:
image: minio/minio
env_file: .env
volumes:
- ./buckets:/data
command: server /data