Ctrlpanel-gg / panel

CtrlPanel offers an easy-to-use and free billing solution for all starting and experienced hosting providers that seamlessly integrates with the Pterodactyl panel.
https://ctrlpanel.gg/
MIT License
389 stars 141 forks source link

[Feature] make an easily deployable docker #938

Closed S0ly closed 1 week ago

S0ly commented 3 months ago

Feature Description

deploying pterodactyl inside a docker is possible, so why not CPGG ?

Solution Idea

it would be nice to have a better documentation of the docker and have a image in docker hub it would enable easy deployment and deployment on things like unraid etc... it would be a nice feature to have

Additional Info

No response

sybetjeh commented 3 months ago

https://hub.docker.com/r/1day2die/ctrlpanel.gg - try this.

S0ly commented 3 months ago

it have no pull or stars, I think I seen 1d2d on the discord but is the docker working ? any documentation on how it work ?

S0ly commented 3 months ago

what port, variable, etc..

sybetjeh commented 3 months ago

I've tried, and it seems like the image is indeed broken. I'll look into updating it and possibly adding documentation

S0ly commented 3 months ago

yep, thanks :D

Hyd3r1 commented 2 months ago

You can use docker-compose files (docker directory) - it's working (i've tested locally)

https://github.com/Ctrlpanel-gg/panel/tree/main/docker

S0ly commented 2 months ago

yep but its not clearly documented or in docker hub its just in some sort of construction / unfinished :)

jameskitt616 commented 1 month ago

Is there anything holding this back? I would be very happy helping out testing this or similar to make this happen. I look forward to a docker image hosted on any container registry (github, dockerhub or wherever), i think this would be a huge benefit for this project just having a docker container people can deploy.

Thank you very much @S0ly for making this PR! <3

S0ly commented 1 month ago

Hi @jameskitt616!

The standalone Docker setup should be ready, but it's made for the dev branch. It might work on the main branch, but I haven't tested it there. It's not released yet because the dev branch has issues that prevent further testing.

If you want to test it on the main branch, you'll need to build your own image using the Docker folder from the PR.

Steps to test:

  1. get the Docker folder from the PR.
  2. Navigate to /docker/standalone.
  3. Run:
    docker compose up

    /!\ Please check and modify the compose values if needed.

If you want to build your own image instead of using docker compose up, run:

   docker build -t controlpanel_web:my -f ../../docker/standalone/Dockerfile ../../
jameskitt616 commented 1 month ago

Thanks! So i checked out your branch, configured the compose and ran the ctrlpanel setup. The panel came up as expected, only weird thing is that the if i open e.g. the Overview i get an exception in the logs Request Failed, is pterodactyl set-up correctly? - cURL error 6: Could not resolve host: api. I don't know why it says host: api, i configured it with a fully working pterodactyl instance on a subdomain.

S0ly commented 1 month ago

@jameskitt616

Strange, I didn't encounter this error. If you're on Discord, could you create a support ticket and ping me there? This way, we won't spam this chat. :)

S0ly commented 1 week ago

will be closed by #946