Tag: nginx

Run Teampass in docker with a running nginx proxy

@Moderators: can you please add the Tag teampass to the tag list? I want to run Teampass as a docker container with a nginx as a proxy. I’m not sure if the problem, that Teampass brings it own Apache and works against my nginx or, if I got something else completely wrong. I enter this […]

Docker Nginx disable default exposed port 80

Is there a way to disable the default EXPOSE 80 443 instruction in the nginx docker file without creating my own image? I’m using Docker Nginx image and trying to expose only port 443 in the following way: docker run -itd –name=nginx-test –publish=443:443 nginx But I can see using docker ps -a that the container […]

Why not run uwsgi instances as root

I am reading through the uWSGI documentation and it warns to always avoid running your uWSGI instances as root. What is the reason behind this? Does it matter if it is the only process (besides nginx) running in a docker container, serving up a flask application?

Service inside docker container stops after some time

I have deployed a rest service inside a docker container using uwsgi and nginx. When I run this python flask rest service inside docker container, for first one hour service works fine but after sometime somehow nginx and rest service stops for some reason. Has anyone faced similar issue? Is there any know fix for […]

Dynamically routing hosts to dockers

I’m trying to dynamically route web hosts to LAMP docker containers. Kinda how “apache dynamic virtual hosts” routes web hosts to their webroot folder based on their name (http://httpd.apache.org/docs/current/vhosts/mass.html). I’m trying route web hosts to dockers with the same host name using an nginx docker on the same VM.

Linking exposed port of docker with with the default nginx port

I have this Dockerfile: FROM alpine:3.4 RUN apk update RUN apk add nginx RUN apk update RUN cp index.html /var/lib/nginx/html/ EXPOSE 8080 Now, how can I access the file index.html on lets say port 9000 on localhost? I got puzzled. Please ask if I am not clear. Just an outline to solution is highly appreciated.

Docker containers starts at different subtnets

I have to start up 3 containers, nginx, wordpress and wordpress2. The problem is the nginx container starts at 172.17.0.2, wordpress at 172.18.0.3 and wordpress2 at 172.19.0.4. The wordpress containers starts with their docker-compose.yml configured as i show: For wordpress: version: ‘2’ services: db: image: mysql:5.7 volumes: – “./.data/db:/var/lib/mysql” restart: always environment: MYSQL_ROOT_PASSWORD: wordpress MYSQL_DATABASE: […]

Progressively migrating to Docker in production

I’m beginning to be used to develop my applications with Docker built environments. I have a physical server on which I’m serving several (locally installed) web applications with Apache. Apache listening on 80 sites-available app1 -> locally installed in /apps/app1 app2 -> locally installed in /apps/app2 … Now I’ve just prepared a full-stack production environment […]

Sharing installed tools from one container to all containers with docker compose

I am pretty new with Docker, and understanding how containers work and work together. I am creating a LEMP stack where i have nginx and php7-fpm as seperate containers. Each one has a Dockerfile and basically creates all i need. My issue though is when installing tools (such as ffmpeg, exiftool, etc..) in one container, […]

ERROR: mkdir with chown not working in Dockerfile (nginx with php-fpm)

For version control and security I want to merge two Dockerfiles into one and then create a directory for .sock => running rmdir and chown. Without rmdir and chown, I can perfectly build the docker if run over port:9000. As soon as I try setting up the directory for .sock, in the dockerfile, the docker […]

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