Tag: nginx

Nginx + dnsmasq = 'could not be resolved (5: Operation refused)'

I’m trying to set up a django site using docker, nginx and uwsgi: I have a nginx docker container working as a reverse proxy (called ceca-nginx-proxy) where dnsmasq is running and another nginx (ceca-nginx) container that communicates with an uwsgi container (ceca-uwsgi), I can connect using curl (with curl –resolve http://test.ceca.com to the ceca-nginx […]

Dockernized Nginx + (Rails+Unicorn)+Redis+PostgreSQL:connect() failed (111: Connection refused)

I am trying to run 4containers(Nginx + (Rails+Unicorn)+Redis+PostgreSQL) with docker-compose,but it does not work.I checked my Dockerfile and nginx.conf couldnt solve the Nginx connection refuse problem(404 not found on browser). [error] 8#8: *1 connect() failed (111: Connection refused) while connecting to upstream, client:, server: localhost, request: “GET / HTTP/1.1”, upstream: “”, host: “” My […]

Nginx Cache file is too small

I have tried enabling Nginx caching in my Elastic Beanstalk application. For this matter I’ve added the following lines in my Nginx configuration file – proxy_cache_path /tmp levels=1:2 keys_zone=analytics-cache:50m max_size=1g inactive=5m use_temp_path=off; proxy_cache analytics-cache; The problem is that once I start up Nginx I get the following error in the error.log – cache file “/tmp/restore_docker_image_names.sh” […]

How to put ownCloud behind Nginx with Docker?

I want to access an ownCloud instance trough Nginx both set up inside separate Docker containers. So I’ve made docker-compose.yml: nginx: image: nginx ports: – 80:80 volumes: – ./nginx.conf:/etc/nginx/nginx.conf links: – owncloud owncloud: image: owncloud ports: – 6789:80 volumes: – ~/ownCloud:/var/www/html/data And nginx.conf to proxify requests with following contents: http { server { listen 80 […]

Server setup: Subdomain or different port for API and single or multiple ssl certificates for a docker, nginx, web and api setup?

I am using digital ocean with ubuntu 15.10 for my server. I have three docker containers: nginx, web (for an angular 2 app), and rails for a rails API. I am planning on setting up the nginx configuration file as follows: port 443 is proxy passed by nginx to my web app. After that I’m […]

nginx setting up variable upstream per virtual host

My aim is to have configurable upstream, so I can use whatever php version I need per project / virtual host. I tried: upstream php { server php7-fpm-alpine:9000; } server { listen 80; server_name somesite.com; root /www/somesite.com; include /etc/nginx/nginx-wp-common.conf; } nginx-wp-common.conf has fastcgi_pass php; My setup works for 1 site, but once I start adding […]

Docker deployment update shared volume

Kind of new with Docker in production I have a design question. What is the best approach to deploy with Docker a PHP app that contains data and info used by other containers in the main application directory that will have to be updated over the builds ? Example (simplify Symfony kind of app): – […]

docker container stops unexpectedly

I have a docker container which stops unexpectedly. The important part of my docker image looks like this: … ENTRYPOINT [“./start.sh”] CMD [“nginx”, “-g”, “daemon off;”] It’s al executed pending the build. Than I start the container with docker run -p 80:8080 myimage:latest I see something like this when I perform docker ps “./start.sh nginx […]

Using a multidomain certificate for artifactory dokcer repo

I have the following a virtual docker repo docker-virtual a remote docker repo dockerhub a local docker repo docker-local docker-local is the default deployment repo. Can I use a multidomain certificate to configure the virtual repo in my reverse proxy? Does the certificate need to support the local repo?

Nginx, WordPress, and SQL

I currently am trying to learn how to use docker and was wondering if there is a way to make a Docker stack that includes WordPress, SQL, and Nginx. Right now I want to have 3 containers running, 1 for each and use nginx as a reverse proxy for my wordpress app. However, every time […]

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