32 Replies
the health check seems to be acting very weird
weird how?
its not working @0xahmad
probably should have clarified that haha
it makes the db just exit
I don't do health checks in docker-compose but did you try the test with
?
I did, but it turns out this is exactly the same as what I have now, CMD SHELL is implied
I solved it, turns out it actually was unhealthy and I was getting some postgres errors I was not able to see at first in the vastness of logs I was getting
Cool, I was gonna say connect a volume with the logs dir, and check them
yah, found them in docker desktop actually
wish there was a way to just see logs for a certain service
probably is i just dont know it
my docker compose terminal just spits out every service together its so much
i think you can stream logs of each container, I just never tried it out
yeah might have to look into that later
or just use docker desktop
thx for ur help tho, much appreciated! @0xahmad
oh and also
?
you said you dont do health checks in docker compose, how do u do them?
(if at all)
I moved to k8 so I do my health chesk in it now
it's connected to a monitoring system which keeps track of what svc is healthy and not
ahhh ok
havent learned kubernetes yet
I only use docker-compose for local dev
deployment is always either k8 or cloud
oh so we can switch over relatively easy?
if you don't need it then stick to what you know 👋
dont need it but yeah probably cool to try it out haha
not really it's a learning curve but if you know you'll need it then it's good to learn it
school project gives us extra credit for it so might try it out
I'm working on larger projects so I need to know devops inside out
yeah I bet
that's nice you should learn it
docker compose is only for a single machine right? so not meant for scaling
it's not hard, just a hek ton of yaml to write
just meant for setting up containers easier?
scratch that, checkout pulumi, you can code your configurations
i figured a lot of setup/config yeah
no I think it's scalable
docker-swarm from what I remember
oh right swarm
so many options
docker is everywhere, it's just more abstractions over that
k8 is just an abstraction over docker(or any other containerizer)
more abstractions yay
abstractions never end lmao
yea sad story haha
you have to weigh the abstraction cost over the requirements. I'd say it's healthy as long as you're careful