Tag: nginx

403 Forbidden – Nginx, Docker & Windows

I’m currently trying to setup a local dev machine with docker, using nginx. I recently switched from Virtualbox support to Hyper-v, and since then I get a 403 Forbbiden in Nginx. I’m following this tutorial to set up things http://tech.osteel.me/posts/2015/12/18/from-vagrant-to-docker-how-to-use-docker-for-local-web-development.html My Nginx config is as follows server { listen 80 default_server; root /var/www/html; index index.html […]

Docker + Windows 10

I try work with docker on Windows 10 and I have 2 problems. First: if i try do Dockerfile FROM nginx MAINTAINER Nikita rassamakhin “nrj.tomsk@gmail.com” COPY /nginx-conf/nginx.conf /etc/nginx/nginx.conf COPY /nginx-conf/vhost.conf /etc/nginx/sites-available/default RUN mkdir -p /var/www/ RUN chown -R www-data:www-data /var/www/ RUN chmod -R 755 /var/www/ and this docker-compose fpm: container_name: php7 image: php:7.0.2-fpm ports: – […]

Docker nginx redirect HTTP to HTTPS

I’m setting up a server using Docker. One container runs an nginx image with SSL configured. A second container runs with a simple node app (on port 3001). I’ve got the two containers communicating with a –link docker parameter. I need to redirect all HTTP requests to HTTPS. Looking at other threads and online sources, […]

Nginx as reverse proxy for docker containers

I’m trying to get Nginx to reverse proxy connections within a lan to several web applications including ones inside docker containers. Both webapps are reachable with the proxy_pass url I’m using the following dockerfile: # Set the base image to Ubuntu FROM ubuntu RUN apt-get update RUN apt-get install -y nginx RUN rm -v /etc/nginx/nginx.conf […]

Can't make nginx and php-fpm dockers communicate

I have created two docker images to match my needs, here is the nginx one: FROM alpine:3.3 RUN apk add –update nginx EXPOSE 80 443 CMD nginx -c /www/dev/nginx/conf/nginx.conf -g ‘daemon off;’ then the php-fpm FROM php:7.0-fpm RUN apt-get update RUN apt-get install -y apt-transport-https ca-certificates dcmtk libgdcm-tools wkhtmltopdf libdbd-freetds libfreetype6-dev \ libjpeg62-turbo-dev \ libmcrypt-dev […]

Are uWSGI and Nginx required to serve a Flask app?

Setting up Flask with uWSGI and Nginx is quite difficult, and even with buildout scripts it takes quite some time, and has to be recorded to instructions to be reproduced later. If I don’t plan a big load on server (it’s hidden from public), does it make sense to run it without uWSGI? (Flask can […]

Nginx Docker On ElasticBeanstalk: No Such File Or Directory

I have an nginx docker. Here’s the Dockerfile: FROM nginx RUN rm /etc/nginx/conf.d/default.conf COPY nginx.conf /etc/nginx/nginx.conf COPY server.8079.conf /etc/nginx/conf.d CMD nginx Everything runs fine when I run this via the docker run command; both /var/lib/nginx and /var/log/nginx exist with the correct permissions, log files are created in /var/log/nginx, and /var/lib/nginx/logs is a symlink that points […]

Connect nginx on host with wsgi unicorn inside docker container

Starting to dockerize my Rails application I am facing following problem: My idea was to have every web application with their Wsgi and dependencies running in an extra docker container and the database also ruiing in seperate containers while using docker-compose to set it up. Outside the containers Nginx is routing traffic then depending on […]

Running Nodejs Application in Amazon EC2 to serve my static content in nodejs using nginx as a reverse proxy

Can any one suggest me how can we serve static content in AWS EC2 instance using pubilc DNS? My Scenario: 1) I was trying to run nodejs docker container on ubuntu instance in AWS EC2 on port 5000 which needs to serve my final output file which was placed in public folder in nodejs i […]

Running Jenkins in a Docker Container

Im trying to get some hands on experience in Jenkins and wanted to run it in a docker container. I was following the tutorial here. I have docker installed on my machine and using Kitematic I launched the official Jenkins docker image (tag: latest) using: docker run -p 8080:8080 jenkins However once the container is […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.