Tag: nginx

systemtap:while resolving probe point: identifier 'process' at source: probe process().function no match

I had installed nginx and lua in my docker image, but I didn’t install nginx on my physical CentOS system. I “docker run my image” and start nginx on my physical CentOS system. So the nginx master and worker process are working. I run an example of nginx-systemtap-toolkit. I run: sudo ./ngx-active-reqs -p 24945 24945 […]

Should I use docker (nginx) for serving a SPA?

I only have 1 javascript file(bundle.js packed by webpack) and 1 html. It’s kinda like SPA. I’m thinking how I host this SPA? I already have one clean VM on Amazon EC2. I was planning setup a docker (Nginx) on this EC2. However, as I said, this VM is clean. Only this SPA will use […]

502 Bad gateway error/NameError in Rack application for sinatra app on nginx, passenger in a docker container

I am starting with docker (1.3.2) and I am trying to get an example working with nginx, passenger and sinatra. Nginx and passenger seem to work. However, I do not get my sinatra app to run. curl localhost gives a 502 bad gateway error and the same when I try to access in the browser. […]

Nginx 502: Bad Gateway with rstudio server

Hi I’m trying to set up RStudio server with a reverse proxy. Here is my Nginx config user nginx; worker_processes 1; # Defines a file that will store the process ID of the main process. pid /var/run/nginx.pid; events { # Sets the maximum number of simultaneous connections that can be opened by a worker process. […]

Using Docker for Drupal Dev (Local)

So, to put it simply, I have a drupal site that’s live. I want to work on it locally and use docker containers to manage that. I want to use this Image: https://index.docker.io/u/bnchdrff/nginx-php5-drupal/ And use this as my data container: https://index.docker.io/u/bnchdrff/mariadb/ I have the database downloaded from the live site saved as an .sql file. […]

Cannot access nginx url within container

I have the following setup Vagrant box with docker installed Docker container up and running and working However I cannot access from my host one of the urls specified in nginx config I can access the grafana one My vagrant file Vagrant.configure(“2”) do |config| config.vm.box = “dockerNoel” config.vm.box_url = “http://files.vagrantup.com/precise64.box” config.vm.provider :virtualbox do |virtualbox| # […]

Handling ports in Shipyard Load Balancer with Docker

I’d like to have Shipyard running in my server and I’m trying to run it with shipyard/deploy container. It runs multiple containers and one of them is a load balancer that runs at port 80. Problem is that I’m handling my containers with Nginx installed on the host, out of containers, at port 80 too. […]

Dart lang app with open stack / docker / vagrant

I’m newbie for these techs (open stack / docker / vagrant), not sure if I understood them correctly (most likely did not), for me I understood it is something like having a portable application to run it with same development configuration to ensure all the development team have same setup, but did not understand, what […]

Single haproxy instance running on http as well as tcp mode

I have two web applications running on a server inside two separate docker containers, one of them is running on play framework server (java), while other is running on nginx (php). I am doing ssl termination in http mode at haproxy for the play app. I want to handle the ssl termination for other app […]

Running Supervisord on Ubuntu in Docker

I’m trying to use supervisor to start nginx and postgresql on boot of a docker container. Using the following Dockerfile and supervisord.conf files, the aforementioned applications start but moments later stop. Does anyone know what could be wrong? There are no error messages to stderr or system log files. Dockerfile: FROM ubuntu:14.04 RUN mkdir -p […]

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