Tag: nginx

Docker: communication between web container and php container

I’m trying to dockerizing a project runs with php + Apache http server. I learned that I need to have a container for apache http server and another container for php script. I searched a lot but still don’t understanding how that works. What I know now is I should resort to docker networking, as […]

Laravel POST TokenMismatchException for files bigger than 8kb/16KB (and 2MB) when jwilder/nginx-proxy

I write application in Laravel 5.4 and dockerized it. To use subdomain in my hosting I use jwilder/nginx-proxy reverse proxy to redirect requests to my container. In my application allow user to upload files but, when I run it on my hosting and send POST “multipart/form-data” request for files larger than 8kb, then laravel return […]

Why Is Apache The Primary Webserver In Docker Containers (for PHP)

When I look at docker projects almost everyone goes with Apache within a container to serve up PHP based apps. For example Piwik. https://github.com/piwik/docker-piwik Yes, most setups have some sort of proxy server in front of the docker containers (typically Nginx). Just wondering why most people use Apache within containers instead of a lighter weight […]

docker – multiple projects on one Dockerfile and docker-compose.yml

I’m starting with Docker and in my opinion is great! Now I’m looking solution for this organization: Now I have this structure: Applications | +–app1 | | +–node_modules | | +–package.json | | +–… | +–app2 | | +–node_modules | | +–package.json | | +–… | …. | docker-compose.app1.yml | docker-compose.app2.yml | …. | Dockerfile […]

Docker(compose) installing nodejs broke npm

I need to use a container with nginx and nodejs, so I take the nginx container and install the node: FROM nginx ENV DEBIAN_FRONTEND noninteractive WORKDIR /usr/src/app VOLUME /usr/src/app RUN apt-get update && \ apt-get install -y apt-utils && \ apt-get install -y –no-install-recommends curl sudo wget nano && \ curl -sL https://deb.nodesource.com/setup_6.x | bash […]

Is this Docker / NGINX / Node setup actually load balancing as expected?

I am setting up a web server using Docker / Node / Nginx. I’ve been playing around with the setup in docker-compose and have come up with 2 working solutions – but in regards to load balancing, one of them may be too good to be true (as it seemingly allows me save space by […]

Docker – nginx with custom conf

When running docker-compose up with the following docker-compose.yml file, nginx immediately exits after starting. When I remove the following line: – ./nginx/config:/etc/nginx/conf.d nginx does not immediately exit. docker-compose.yml version: ‘3’ services: nginx: image: nginx ports: – ‘8080:80’ volumes: – ./nginx/log:/var/log/nginx – ./nginx/config:/etc/nginx/conf.d – ../wordpress:/var/www/wordpress php: image: php:fpm ports: – 9000:9000 mysql: image: mysql ports: – […]

Openresty Hello world with docker

I’m trying make my application dockerize for that I’ve been following official openresty dockerfile. Os in my system is Ubuntu 16.04 64 bit. I have already pull that image using this cmd. docker pull openresty/openresty:1.11.2.3-xenial Now I want to use this image and want make simple hello world application. For that I have created my […]

How can I use Kalabox with a WordPress Install that has a nested web root?

I have been trying and failing for a week to get Kalabox working with a WordPress install that has a nested web root with Pantheon. I’ve found some great resources, but many of them are for Drupal and they don’t seem to translate to the WP installs, like the great post by Tandem here: https://www.thinktandem.io/blog/2017/05/20/using-pantheon-s-nested-docroot-with-kalabox/ […]

Share docker container permission to php-fpm image from volumes_from

I’m dockerizing an application made in laravel. I made the compose file creating a data container for this application, master, and using nginx and php-fpm for serve it, but all time i got permission problems: salahaddin@TulipanROG  ~/Proyectos/UzmanTech/opus  nginx-server ✚ ●  docker-compose logs -f | grep opus.php  130 ↵  2678  […]

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