Updated configuration
This commit is contained in:
parent
2b8fd8b73f
commit
08b932d9af
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM python:3.5
|
||||
FROM python:3.6
|
||||
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#!/bin/sh
|
||||
#rm -R /app/staticfiles/*
|
||||
#python /app/manage.py collectstatic --noinput
|
||||
#python /app/manage.py compilescss
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM postgres:9.6
|
||||
FROM postgres:10
|
||||
|
||||
# add backup scripts
|
||||
ADD backup.sh /usr/local/bin/backup
|
||||
|
|
7
live.yml
7
live.yml
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue