9
votes
Accepted
What is the purpose of running PHP-FPM in its own container instead in the same container as apache2/nginx?
Im heavily investigating this, and like many people, im discovering that in 2020 there doesn't seem to be so much logic in separating tightly coupled webserver + PHP + app process/code from each other:...
5
votes
What's the benefit of using Nginx to serve a Flask API on AWS?
Unless you are using the AWS API Gateway, you'll still need some way of "serving" your Flask API. You will also need to provision an EC2 instance and run something to serve your API. Instead of ...
5
votes
Accepted
Blue Green Deployment DB transactions management
As per Martin Flowers' definition of Blue-Green deployment
The blue-green deployment approach does this by ensuring you have two production environments, as identical as possible. At any time one ...
5
votes
Accepted
How to populate docker volumes in a build step to be used by a different container
docker-compose is just a glorified wrapper around docker which gives you a nice textual representation of all the options you would regularly give to docker build or docker run. Plus, of course, it ...
5
votes
Accepted
How to serve a custom index.html using the stock nginx docker image?
The "official" nginx image has a specific path where it looks for files. You can either copy a file into the image by creating a new image from it or mount your files into this path as a ...
3
votes
Accepted
Kubernetes serve static content with ingress
You can't configure your Ingress to serve static data (from your host files for example) alone because the Ingress resource is just a way to configure a way of understanding for Kubernetes on how to ...
3
votes
Where does multi-role variable goes in Ansible?
See Variable precedence: Where should I put a variable?. You can see that the role's defaults represent the lowest precedence for variables and the extra variables, declared on the command-line, ...
2
votes
Consul with Nginx, not using docker
I have done this in the past using https://github.com/hashicorp/consul-template.
What consul-template does it generate a configuration file (for nginx) based on a certain template you provide. And ...
2
votes
Jenkins returns 502 gateway error and (104: Connection reset by peer)
If the system recently rebooted and your proxy server is giving 502/503s, it's most likely that the backend service failed to start.
Using whatever tools are most appropriate for your OS/distro (e.g. ...
2
votes
How to add rules to Kubernetes NGINX Ingress controller from different yml definitions?
I was able to combine your two example files by first converting them to JSON.
foo.json
{
"apiVersion": "extensions/v1beta1",
"kind": "Ingress",
"metadata": {
"name": "nginx-ingress"
},
...
2
votes
Accepted
Dockerfile COPY command with three input parameters
As per this docker documentation the copy instruction may have multiple sources but only one destination.
Your first copy is coping two file /etc/passwd and /etc/group to /etc.
2
votes
Using HTTPs in application vs reverse proxy
You will find people from both camps (terminating TLS as soon as possible vs terminating TLS in the application code) but it's not as serious as for example tabs vs spaces.
The benefit of terminating ...
2
votes
Kubernetes nginx ingress controller - one pr. environment?
I would suggest at least one for production and one for npe. The nginx-ingress helm chart appears to only support setting a scope to all namespaces or just one namespace (a frustrating limitation not ...
2
votes
Nginx ingress controller redirects the url to /login
It just works
Your configuration is correct.
Provided YAML file generates nginx config like this:
...
server {
listen 80;
server_name example.com;
...
location ~* "^/service/test" {
...
2
votes
How to access a fully qualified domain name through "localhost"?
According to your screen dump you have your port 80 mapped to the Traefik container
58cd5b59579c traefik:v2.2 "/entrypoint.sh --lo…" 16 minutes ago Up 15 ...
2
votes
Is SSL/HTTPS Needed Between Docker Containers on the Same Network?
Generally - no, I don't think you need TLS between your reverse proxy and service containers within same Docker network (or possibly 2 Docker networks: 1 internal for workers, 1 with internet access ...
1
vote
Accepted
CloudFront -> ELB -> Pod running Gunicorn
Nginx will help you in performing the below items if you need some of them, Then I would say it make sense to add it to the stack
Optimize the caching (you can also cache dynamic content.
Restrict ...
1
vote
Nginx unable to get SSL cert to work
Issue ended up being that I was creating a self signed cert because I was using the wrong issuer. I had an issue before with the dev.yaml file but never updated for this new ENV.
1
vote
Accepted
How do I set up certbot, with Nginx, both in a Docker container?
Answered my own question, documented my steps on my Github repo.
Recap:
Add Nginx config to desired domains:
location ~ /.well-known/acme-challenge {
allow all;
try_files $uri $uri/ ...
1
vote
Accepted
Is it a bad idea to use a web app including nginx, gunicorn and flask in a single docker container?
While this is possible it is not a best practice. Whenever possible, containers should contain a single process. The reasoning for this is:
It fosters a modular design where you can more easily ...
1
vote
Deploy dist file in docker file
There are lots of good tutorials for NGINX and it is an easy server to setup with the Angular router. You can still accomplish this with an Apache server, but you may need more steps in your ...
1
vote
How to run WSGI Python server without Apache or NGINX
This question doesn't really make sense - WSGI is the mechanism that a web server such as Apache would use to invoke an application or script, such as something written in Python. If you have no web ...
1
vote
Does K8s ClusterIP service supports custom timeout?
All cookies and headers are a construct of the HTTP protocol. Kubernetes Services operate on TCP/UDP packets therefore it will pass the payload as-is.
It is not that there isn't an nginx.conf file ...
1
vote
Accepted
Docker NGINX issue -- unable to edit nginx.conf
I suggest you mount your conf file as a volume:
docker run -v nginx.conf:/etc/nginx/nginx.conf ....
This way you can easily change the file outside the container and then just restart the container. ...
1
vote
Accepted
Nginx routing setup within Docker container, request timing out with 502
You will notice in this upstream block:
upstream api {
server server:5000;
}
I called it api but then I say server server:5000;. That was the problem because I originally had it as:
upstream ...
1
vote
Very slow network when serve container content via Nginx after published Docker port
I would suggest to use Ubuntu form docker hub and try Ubuntu alpine image.
there should be also problem form database if your database is outside the K8s cluster so may possible latency problem ...
1
vote
PHP-FPM with Nginx in different containers (share init.d response between)
Here is nginx and php done as an s2i builder image. You can basically have plain old php in a git repo and run s2i to make a runtime image that runs it with nginx and php. You simply docker build that ...
1
vote
Accepted
Multiple Application in single SSL 443 server NGINX
Oops, turns out I just have to remove the line
listen [::]:443 ssl ipv6only=on;
and it works.
it's leftover from running NGINX certbot, I thought that was important
1
vote
Issue with custom domain SSL certification
Can you obtain a secure certificate for someone else's domain or subdomain without their help - hopefully not.
One of the core security pillars of a secure certificate is that it ensures that you are ...
1
vote
Is this okay to use double proxy-server setup (on host and in container) on one machine?
Production configurations often involve multiple levels of proxies. Each should provide a place for gathering stats. Proxies can also hide backend failures if you have a pool of nodes behind the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
nginx × 74docker × 31
kubernetes × 13
ingress × 11
docker-compose × 10
dockerfile × 5
ssl × 5
php × 5
certbot × 5
amazon-web-services × 4
ansible × 4
apache-httpd × 4
python × 3
load-balance × 3
servers × 3
azure-kubernetes-service × 3
flask × 3
letsencrypt × 3
jenkins × 2
azure-devops × 2
linux × 2
networking × 2
microservices × 2
amazon-ecs × 2
dns × 2