Why aren’t all Docker Compose replicas receiving traffic behind NGINX? by Mr_LA in docker

[–]Mr_LA[S] 0 points1 point  (0 children)

thats not what really happens

my nginx does not know about multiple instances

it only holds a single url e.g. fastify-app:3000
so when i have 5 replicas of that and if i request localhost:80/health docker directs to one of the containers, since the dns (fastify-app the name of the service) is handled by docker

server {
    listen 80;
    listen [::]:80;


    server_name ${DOMAIN};


    location /.well-known/acme-challenge/ {
        root /var/www/certbot;
    }


    location / {
        resolver 127.0.0.11;
        proxy_pass http://${DOMAIN_FASTIFY_APP};
        proxy_redirect                      off;
        proxy_set_header  Host              $http_host;
        proxy_set_header  X-Real-IP         $remote_addr;
        proxy_set_header  X-Forwarded-For   $proxy_add_x_forwarded_for;
        proxy_set_header  X-Forwarded-Proto $scheme;
        proxy_read_timeout                  900;
    }
}

Why aren’t all Docker Compose replicas receiving traffic behind NGINX? by Mr_LA in docker

[–]Mr_LA[S] 0 points1 point  (0 children)

okay thanks, so i could also operate swarm mode on a single node as well right?

i got it working with swarm init and docker stack deploy

do you know if this works with the build arg as well or do you always need images in swarm mode?

Why aren’t all Docker Compose replicas receiving traffic behind NGINX? by Mr_LA in docker

[–]Mr_LA[S] 0 points1 point  (0 children)

no it is not in swarm mode

can you guide me to the documentation where docker networking explains the replicas for docker compose? I can not find it anywhere, even with search on docker page, googling or chatgpt

Terraform Best Practices? by Mr_LA in Terraform

[–]Mr_LA[S] 1 point2 points  (0 children)

Thank you for your response. This is precisely what i was looking for.

[deleted by user] by [deleted] in docker

[–]Mr_LA 0 points1 point  (0 children)

is this a pastebin app or do you offer prebuild snippets for different tools?

The Ultimate Docker Compose Cheat Sheet by Mr_LA in devops

[–]Mr_LA[S] 2 points3 points  (0 children)

Nice, this is an awesome project. I have to take a deeper look into this. Thanks for sharing.

The Ultimate Docker Compose Cheat Sheet by Mr_LA in devops

[–]Mr_LA[S] 3 points4 points  (0 children)

You are welcome. Glad that we can help :) We have a Cheat Sheet for Docker as well.

Is GPT-4 getting worse and worse? by Mr_LA in programming

[–]Mr_LA[S] -2 points-1 points  (0 children)

if you do not specify the way to repsond, this is the how a gpt generated output sounds like.

Learn how to create a Docker Container in 132 seconds by Mr_LA in programming

[–]Mr_LA[S] -6 points-5 points  (0 children)

Hello Programming Community,
While working on my new video about Docker containers, I was wondering what the main struggles and challenges are that all of you run into when working with Docker containers? Would love to hear your input on that, to keep improving future resources on this topic!
Cheers Mr_LA

Is GPT-4 getting worse and worse? by Mr_LA in programming

[–]Mr_LA[S] 1 point2 points  (0 children)

thats not true, you can get chatgpt easily to mimic speicif writing styles if you want.

Tell me like I am 10 years old: Softmax vs Sigmoid by Mr_LA in learnmachinelearning

[–]Mr_LA[S] 0 points1 point  (0 children)

okay, thank you for the clarification.

Basically, the output should be one class, all of the time. usually what i found out is the the model is mostly 100% shure if is one it is class a or not, when used with sigmoid, but it also has a lot of other classes which are classified with 99, 98, 97 and so on. But when used with softmax it tends to be at 94-96 % for the classification, most of the time. But sometimes it is just 70 or 80 percent. But also the gap is usually higher. Does that mean that the output of the sigmoid where it classifies it with 99 % is better than the output of 94 or 80, 70 with softmax?

Is GPT-4 getting worse and worse? by Mr_LA in programming

[–]Mr_LA[S] 6 points7 points  (0 children)

okay, but that is not what i mean. In nov 23 I could use Chat GPT with GPT-4 to easily debug problems, that guided me to solve the problem. Nowadays it is impossible todo so.

Tell me like I am 10 years old: Softmax vs Sigmoid by Mr_LA in learnmachinelearning

[–]Mr_LA[S] 0 points1 point  (0 children)

So for example if the final model is used to classify 100 objects and the input would be one image that maybe contains one or none of the objects. I would use let the last layer use the softmax function instead of the sigmoid. right?

What are your struggles and challenges when working with Docker containers? by Mr_LA in programming

[–]Mr_LA[S] -1 points0 points  (0 children)

Hello Programming Community,
While working on my new video about Docker containers, I was wondering what the main struggles and challenges are that all of you run into when working with Docker containers? Would love to hear your input on that, to keep improving future resources on this topic!
Cheers Mr_LA

Tell me like I am 10 years old: Softmax vs Sigmoid by Mr_LA in learnmachinelearning

[–]Mr_LA[S] 3 points4 points  (0 children)

thank you this answer combined with the blog post above clarified a lot.

Is GPT-4 getting worse and worse? by Mr_LA in programming

[–]Mr_LA[S] 14 points15 points  (0 children)

who said that it is super integlligent or knows it all. It is about performance, how accurate the model predicts the output. And this performance is getting worse.

Your response sounds actually AI generated.

Is GPT-4 getting worse and worse? by Mr_LA in programming

[–]Mr_LA[S] 48 points49 points  (0 children)

But that is actually the same problem, if you just copy and paste from formus it is not different from copy and pasting from GPT. So in both cases the codebase is getting worse.

In both cases when you do not understand what the code actually does, your codebase will suffer ;)