EdyTheCow / docker-pterodactyl

Running Pterodactyl Panel inside docker containers behind Traefik reverse proxy
255 stars 52 forks source link

Does this work on one server? #19

Open P3ntest opened 2 years ago

P3ntest commented 2 years ago

Hey! If I just point everything to the same domain can I get this running on only one server?

Thanks in advance :)

EdyTheCow commented 2 years ago

It could be possible with some tinkering but it's not recommended. Pterodactyl wasn't designed to run the panel and wings on the same server. Panel itself doesn't require a lot of resources, you could get a cheap VPS and it will run just fine.

iproxy commented 2 years ago

It does work on one server and the same domain. I have my setup with UnRaid, Traefik, and Cloudflare. I had to do quite a bit of tinkering to get it working properly, but everything works just fine. It took me about a week just trying to get it all working though. The number one issue I had was getting the Wings connected, but it ended up being CORS-related. I had to create a middleware with Traefik / create labels for it. It probably would have taken me less time setting it all up, but I'm still getting used to Traefik.

SeanMcTG commented 2 years ago

It does work on one server and the same domain. I have my setup with UnRaid, Traefik, and Cloudflare. I had to do quite a bit of tinkering to get it working properly, but everything works just fine. It took me about a week just trying to get it all working though. The number one issue I had was getting the Wings connected, but it ended up being CORS-related. I had to create a middleware with Traefik / create labels for it. It probably would have taken me less time setting it all up, but I'm still getting used to Traefik.

What labels did you use to get passed the CORS issues. I'm currently running into the same errors and can't for the life of me fix it.

treierxyz commented 2 years ago

It does work on one server and the same domain. I have my setup with UnRaid, Traefik, and Cloudflare. I had to do quite a bit of tinkering to get it working properly, but everything works just fine. It took me about a week just trying to get it all working though. The number one issue I had was getting the Wings connected, but it ended up being CORS-related. I had to create a middleware with Traefik / create labels for it. It probably would have taken me less time setting it all up, but I'm still getting used to Traefik.

I would also like some help with this.

kraoc commented 2 years ago

It could be possible with some tinkering but it's not recommended. Pterodactyl wasn't designed to run the panel and wings on the same server. Panel itself doesn't require a lot of resources, you could get a cheap VPS and it will run just fine.

I use Ptero full :p (Ptero + Wings + all related to ptero install) on a Raspberry Pi... So it run smoothly on a single machine. I don't say it has heavy performances but I run a minecraft server under Ptero like this. Reason to use ptero is to have an ide to switch between worlds without launching a shell :p

cskujawa commented 1 year ago

@P3ntest, @SeanMcTG, and @treierxyz.

I used EdyTheCow's work here as a reference for getting started.

I deployed Pterodactyl Wings and Pterodactyl Panel on my Ubuntu 22.04 server inside an existing hobby docker-compose project. I didn't want to learn Traefik, so I switched everything to work with my existing NGINX setup.

I tried to document all the hurdles and notes I could for this, and I provided some example files and all those notes here. https://github.com/cskujawa/pterodactyl-single-server-docker-compose

If anyone has questions about my setup, feel free to reach out, I will gladly assist.

EdyTheCow commented 1 year ago

@P3ntest, @SeanMcTG, and @treierxyz.

I used EdyTheCow's work here as a reference for getting started.

I deployed Pterodactyl Wings and Pterodactyl Panel on my Ubuntu 22.04 server inside an existing hobby docker-compose project. I didn't want to learn Traefik, so I switched everything to work with my existing NGINX setup.

I tried to document all the hurdles and notes I could for this, and I provided some example files and all those notes here. https://github.com/cskujawa/pterodactyl-single-server-docker-compose

If anyone has questions about my setup, feel free to reach out, I will gladly assist.

That's extremely well documented guide! Do you mind if I add this as a reference link in my guide? So it's more visible for anyone else looking for a single server setup. My guide was never meant to be single server, but I am sure there's many others who might be interested in the single server guide.

kraoc commented 1 year ago

Another guide for french reading peoples :package: https://infos.zogg.fr/pterodactyl/

Docker + Traefik (or Caddy) + Panel + Wings

(config files are commented in english)

cskujawa commented 1 year ago

@P3ntest, @SeanMcTG, and @treierxyz. I used EdyTheCow's work here as a reference for getting started. I deployed Pterodactyl Wings and Pterodactyl Panel on my Ubuntu 22.04 server inside an existing hobby docker-compose project. I didn't want to learn Traefik, so I switched everything to work with my existing NGINX setup. I tried to document all the hurdles and notes I could for this, and I provided some example files and all those notes here. https://github.com/cskujawa/pterodactyl-single-server-docker-compose If anyone has questions about my setup, feel free to reach out, I will gladly assist.

That's extremely well documented guide! Do you mind if I add this as a reference link in my guide? So it's more visible for anyone else looking for a single server setup. My guide was never meant to be single server, but I am sure there's many others who might be interested in the single server guide.

Absolutely, link away!