This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM nginx | |
| RUN apt-get update && DEBIAN_FRONTEND=noninteractive \ | |
| apt-get -y upgrade && \ | |
| apt-get -y --no-install-recommends install \ | |
| apache2-utils curl nano less | |
| RUN mkdir /var/www/ && \ | |
| useradd -d /var/www/ -s /bin/bash <user> && \ | |
| echo '<user>:<password>' | chpasswd && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3' | |
| services: | |
| frontnginx: | |
| image: nginxbase | |
| container_name: frontnginx | |
| volumes: | |
| - "ngfront-config:/etc/nginx/conf.d" | |
| - "ssl-files:/ssl-files" | |
| ports: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 8080; | |
| server_name localhost; | |
| location / { | |
| root /usr/share/nginx/html; | |
| index index.html index.htm; | |
| } | |
| #error_page 404 /404.html; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| worker_processes 1; | |
| error_log /var/log/nginx/error.log warn; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM debian:jessie | |
| MAINTAINER digitalapotheosis | |
| # digitalapotheosis/tonido:latest | |
| #Install Dependencies | |
| RUN \ | |
| apt-get update -q && DEBIAN_FRONTEND=noninteractive && \ | |
| apt-get -y install\ | |
| wget\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| cd zinblog | |
| python manage.py migrate # Apply database migrations | |
| python manage.py collectstatic --noinput # Collect static files | |
| # Prepare log files and start outputting logs to stdout | |
| touch /srv/logs/gunicorn.log | |
| touch /srv/logs/access.log | |
| tail -n 0 -f /srv/logs/*.log & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM debian:jessie | |
| RUN apt-get update && DEBIAN_FRONTEND=noninteractive\ | |
| && apt-get install -y python vim build-essential python-pip python2.7-dev \ | |
| curl git tar libpq-dev libjpeg-dev zlib1g-dev nginx | |
| RUN pip install django==1.9.8 django-mptt django-tagging pillow \ | |
| beautifulsoup4 mots-vides regex django-contrib-comments \ | |
| gunicorn markdown docutils pytz | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| upstream zinnia_server { | |
| server unix:/srv/run/gunicorn.sock fail_timeout=0; | |
| } | |
| server { | |
| listen 80; | |
| server_name blog.bodhirobot.com; | |
| client_max_body_size 4G; |