Tag: nginx

Docker Compose run a command

I would like to run a command with docker compose, it is not working, the container starts and disappear without any errors web: image: nginx:latest ports: – “8888:80” volumes: – ./dir:/dir command: bash -c “chown -R www-data:www-data /dir” links: – php I think that the command is being executed but the container stops then, should […]

Use Maven and Docker + Nexus 3 behind NGinx with HTTPS

I generated certificates for my docker client and deamon following Docker recommendations: https://docs.docker.com/engine/security/https/#create-a-ca-server-and-client-keys-with-openssl But… I’m using Sonatype Nexus 3 as my private docker registry. And I have a frontal NGinX. I would like to setup NGinx with a self-signed certificate to be able to use Nexus as a registry. Basically, I have that setup for […]

Nginx conf template not working with dokku

I am stuck with the following nginx conf template: # Special characters – dollar signs, spaces inside of quotes, etc. – # should be escaped with a single backslash or can cause deploy failures. server { listen [::]:80; listen 80; server_name $NOSSL_SERVER_NAME; access_log /var/log/nginx/${APP}-access.log; error_log /var/log/nginx/${APP}-error.log; # set a custom header for requests # add_header […]

Fail to expose my pod to the internet

I have tried some example to run a specific image on my kubernetes cluster, I did this command: kubectl run my-nginx –image=nginx –replicas=2 –port=80 then: kubectl expose rc my-nginx –port=80 –type=LoadBalancer and when I go: kubectl get service I get: NAME LABELS SELECTOR IP(S) PORT(S) kubernetes component=apiserver,provider=kubernetes <none> 10.0.0.1 443/TCP my-nginx run=my-nginx run=my-nginx 10.0.100.19 80/TCP […]

Nginx configuration for docker repos in Artifactory

I have the following conf for nginx to set up docker repos in artifactory upstream artifactory_lb { server backup_artifactory_server:8081 backup; server main_artifactory_server:8081; } log_format upstreamlog ‘[$time_local] $remote_addr – $remote_user – $server_name to: $upstream_addr: $request upstream_response_time $upstream_response_time msec $msec request_time $request_time’; ssl_certificate /etc/nginx/ssl/myCert.pem ssl_certificate_key /etc/nginx/ssl/myKey ssl_protocols TLSv1.1 TLSv1.2; ssl_ciphers ‘EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH’; ssl_session_cache shared:SSL:10m; server { listen 80; […]

Docker Compose Setup in Windows 10 for nginx php-fpm fails with Error

I have below docker composer file which seems to be loading and working fine for phpmyadmin on 8080. however i cant get the app working for the php ? i get a error called. 403 Forbidden FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream, client: 192.168.99.1, server: 192.168.99.100, request: “GET […]

how to benchmark containers ? a lot of request, monitor memory and cpu usage

for my bachelor thesis I have to test a handful of containers runtime. Like Docker, Lxc, runC, Rocket and OpenVZ. My test protocol is simple, I never did testing or benchmarking so I am sorry I am a newb :-). Can you tell me if my test is relevent ? So, it’s simple I will […]

Trying to run php-fpm on Docker

I´m following this tutorial about setting up my own LEMP server with Docker. The author of the tutorial uses the following line in the Dockerfile: RUN docker-php-ext-install -j$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) iconv gd mbstring fileinfo curl xmlreader xmlwriter spl ftp mysqli But it keeps throwing me the following error: Step 3 : […]

Why isn't nginx handling requests in this docker-compose/django setup?

I’m trying to learn docker and docker-compose, and have run into a roadblock. The stack is a python:2.7 base image serving up django pages, and this part works fine. I now want to put nginx in front of it as a reverse proxy. When I access localhost:8000 I get django pages as expected. When I […]

Issue staring docker container with nginx and passenger

I am getting this weird issue in my docker container when I try to starting it. The container is trying to run a rails 4 app on Fedora 23 using nginx and passenger, but I am using the package ulyaoth-nginx-passenger5 that install nginx already build with passenger. This configuration is working right outside the container […]

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