Tag: nginx

how to make fail2ban read json docker logs

Is it possible to configure my fail2ban jail.conf to inspect the docker logs instead of mounting the log in the host. for example to set the logpath to the path of the log of the container. Jail.conf: … #example [nginx-http-auth] enabled = true filter = nginx-http-auth port = http,https logpath = /var/lib/docker/containers/819564257d4*/*e0923e-json.log … but this […]

Artifactory bad gateway error

I am trying to use artifactory as a docker registry. But pushing docker images gives a Bad Gateway error. Following is my nginx configuration upstream artifactory_lb { server artifactory01.mycomapany.com:8081; server artifactory01.mycomapany.com:8081 backup; server myLoadBalancer.mycompany.com: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’; server { listen […]

nginx as proxy to my mysql server in docker

I’m working with a server in the cloud with N dockers containers, in the server I have one nginx that redirect based on the domain to my docker containers, I can perfectly redirect my http traffic, but I’m getting troubles with when it is mysql since it uses a protocol different to http, I tried […]

How to insert dockerised cron process in a docker-compose built LEMP stack?

I have a LEMP stack which is built by this docker-compose file: cadvisor: image: google/cadvisor:latest container_name: lemp_cadvisor ports: – “8080:8080” volumes: – “/:/rootfs:ro” – “/var/run:/var/run:rw” – “/sys:/sys:ro” – “/var/lib/docker/:/var/lib/docker:ro” base: build: ./base container_name: lemp_base volumes: – /home/core/server-lemp/www/:/var/www/:rw phpmyadmin: build: ./phpmyadmin container_name: lemp_phpmyadmin links: – base volumes: – /var/www/phpmyadmin – ./phpmyadmin/var/www/phpmyadmin/config.inc.php:/var/www/phpmyadmin/config.inc.php:rw mariadb: build: ./mariadb container_name: lemp_mariadb […]

Docker push to Artifactory fails – unable to ping resgistry endpoint

I am using Artifactory backed up by nginx as the proxy server. The nginx load balancer is configured with SSL certs from a trusted authority. I created a local docker repo and need to push images but get the following error: unable to ping registry endpoint https://myArtifactory.com/v0/ v2 ping attempt failed with error: Get https://myArtifactory.com/v2/: […]

Why google drive change permission of the file and how to solve it?

I am sharing a project with a non technical team and I share it using google drive. I have a nginx docker that mount the html folder in google drive. But every time I run the docker I always get 403 Access Denied. And google drive also add ^M character at the end of each […]

Create and add a Marathon application

I am new to mesos and now i am trying to execute the Part 1: Creating a Public App on my windows system. I’ve created the nginx.json and then run the command: dcos marathon app add nginx.json I’m getting the error like Error decoding response from [http://ec2-(…).amazonaws.com/marathon/v2/info]: HTTP 404: Not Found below is my folder […]

how to import large file in a local cartodb running in a docker container

I’m using https://hub.docker.com/r/sverhoeven/cartodb/ docker image. I’ve configured nginx as requested. I have an up and running local cartodb, made some cool visualization. I can upload 80MB files as many time as I want to. However, when I try to upload a 240MB file, it doesn’t even try. I immediately have a little pop up in […]

Docker Compose – symlink in deployment

I have an application with this structure. /path/releases /path/releases/01012016 /path/releases/16012016 /path/releases/etc.. And /path/dev (symlink to some version) /path/stag (symlink to some version) /path/stable (symlink to some version) My docker-compose.yml looks like this: nginx: … volumes_from: – data php: … volumes_from: – data data: volumes: – /path/stable:/var/www I known that Docker resolves symlinks. I have thought […]

auto nginx proxy for dockerized websites

Hello stackoverflow community! I am currently having this scenario with dockerized websites. Host Machine – Website A – Website B – Website C All of the websites have different domains. Right now I make a manual proxy_pass from the host machine nginx to the website dockers. e.G. Website A listen to port 9001:80, Website B […]

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