Tag: nginx

Why won't my container run?

Ubuntu 15.10 Using this run command with the official nginx image: sudo docker run -dit –name=”myApp” -p 8181:80 -v /home/username/Documents/My\ Folder/Repos/my-app:/usr/share/nginx/html:ro -v /home/username/Documents/My\ Folder/Repos/my-app/nginx.conf:/etc/nginx/nginx.conf:ro nginx It runs fine without the 2nd VOLUME declaration (without the custom nginx.conf), but I recently added it because I need to configure some things (AngularJS html5 routing mode). My nginx.conf […]

RestAPI and Front-End on the same port in Docker

I have created new droplet on DigitalOcean and installed Docker. I have two containers, one with my NodeJS app = RestAPI on port 8080, and second with Nginx that basically expose my static html files (with AngularJS) on port 80. But now, I want to start making requests from my Front-End AngularJS app to the […]

Nginx returns HTTP Status 200 instead 302 on a proxy_pass configuration

I have the following configuration on a NGINX which is serving as a reverse proxy to my Docker machine located at: Basically, I need to hit: http://localhost:8150 and the content displayed has to be the content from inside the Docker. The configuration bellow is doing his job. The point here is that when hitting […]

nginx not starting inside Docker [duplicate]

This question already has an answer here: Dockerized nginx is not starting 4 answers

Connection refused : Nginx HTTPS reverse proxy in docker container

I wanted to setup https reverse proxy with nginx on docker container either ubuntu/centos. On Browser side, I am getting connection refused error. And also, I cannot see anything under /var/log/nginx/access.log or /var/log/nginx/error.log. I am able to setup http reverse proxy with nginx on docker container again. And, also https reverse proxy with nginx on […]

Docker Passenger Dashboard shows MySQL can't connect to socket

I’m Trying to deploy Ruby on Rails app on phusion/passenger-ruby21 container and a separate mysql:5.5.46 container. Both are linked without docker compose. I ran Passenger-ruby container with: sudo docker run -it -p 80:80 –link mysql55:mysql -e .env –name ror1 rubyonrails-phusionimg2 /bin/bash mysql container with: sudo docker run –detach –name mysql55 –env MYSQL_ROOT_PASSWORD=**** –env MYSQL_USER=**** –env […]

Docker run start services

I need nginx-openresty and redis in single docker container. I have written docker file its working fine. But thing i need to start my redis service after login into the docker bash to automate this I have written .sh file which contains instrutions like start and stop of redis server and nginx. ENTRYPOINT [“./startup.sh”] and […]

Restart a Docker service when config changes

How would you restart a service, say for example ‘nginx‘ when a config file changes? For example I’ve got Puppet creating some nginx cfg files and place them on a volume which is mounted to my nginx container. At the moment I am using docker-gen, but are there any other methods?

Does my proxied server need to use HTTPS protocol with docker linking?

I am running several docker containers for a very small web app: nginx, node, and redis. These containers are all linked together using the legacy methods (not a network) with the pattern nginx –proxies-> node –uses-> redis My nginx proxy is set up to use HTTPS but my node server (using hapi.js) is not. Is […]

Nginx conf wont work

I am working with docker but it doesnt seem to be the problem. The problem seems to come from Nginx conf. nginx.conf: user www-data; worker_processes 4; pid /run/nginx.pid; events { worker_connections 2048; multi_accept on; use epoll; } http { server_tokens off; sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 15; types_hash_max_size 2048; include /etc/nginx/mime.types; default_type application/octet-stream; […]

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