Closed tionebDotsamapha closed 6 years ago
Hello @ben7244,
Thanks for your message.
The have it running you must use port 80 and 443 as of requested by the @jwilder containers, we use...
But if you have two different servers, even if it shares the same external ip, the local ip is different you would use port 80 and 443 the both server... if there is two different servers.
Let me know if I could be of any help.
Thank you @evertramos! Yes, there is two differents physicals servers
if I understood. I need proxy companion on only one server. So I can use my actual proxy to redirect on the second server. In this case I don't see what I must set to redirect with letsencrypt certs. Can you give me the way to follow?
@ben7244, sorry...
I mean you should have proxy on both server, listening on port 80 and 443 on both server. So, it will be two environments.
Do you want to load balance?
You could try to use Kubernetes or Ingress to do it so, might want to check swarm as well, but with this proxy might be little hard to do load balancing on two different server...
I am working on a new proxy but it will take some time to put it to production.
Hope you get through this..
@evertramos, thank you! I close the discution because I just see the issue #63 which is a similar question. although I don't understand why @xgenvn talks about swarm in the title. His graph explain really that I need but I don't know why I must do :
I continue to search, all help is welcome!
You could do that with an extra nginx to administrate your services as of this sample:
https://github.com/evertramos/nignx-behind-proxy
Let me know if it was of any help.
Perfect! After long hours I win!
Thank you for all your advices!
Can you tell us more on your new proxy or that's a surprise?
I am just trying to automate everything for a devop, creating a script to backup it containers data and wordpress, restore in another server if needed, and also simplify the ssl certificates for same domain with new Let's Encrypt option for wildcard which we do not have today... I am styding traefik, ingress. and it will probably be the best solution for it.
If you use wordpress you could follow up and give some ideas on:
https://github.com/evertramos/docker-wordpress-backup
Still in development ok?
Thanks for your back. That's will nice!
I don't use WordPress but I will follow your project. I store our own laravel cms for easy websites creation at use of professionals editors without IT knowledge. There will be common function at my environment.
Thanks for your help! Bye
I do have a couple apps in Laravel as well but still not mature enough for the CI... using GitLab for the moment, but will share the code as well, soon.
Hi all,
I have 2 docker servers on the same physical network for only one public ip.
I use the first server on the port 80 and 443 with docker-compose-letsencrypt-nginx-proxy-companion and I would thanks people who's participating at this project.
But now I want to use the second with the proxy companion. I set a another docker-compose on on the second on 8080 and 4343 ports
But that not work. I've an error on the creation of the certificat. Let's Encrypt need the domain an http connection.
Anyone can give me how can I set this?
Thank you?