panel icon indicating copy to clipboard operation
panel copied to clipboard

[Feature] make an easily deployable docker

Open S0ly opened this issue 11 months ago • 11 comments

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

S0ly avatar Mar 21 '24 18:03 S0ly

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

sybetjeh avatar Apr 03 '24 21:04 sybetjeh

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 avatar Apr 03 '24 22:04 S0ly

what port, variable, etc..

S0ly avatar Apr 03 '24 22:04 S0ly

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

sybetjeh avatar Apr 03 '24 22:04 sybetjeh

yep, thanks :D

S0ly avatar Apr 03 '24 22:04 S0ly

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

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

Hyd3r1 avatar Apr 12 '24 15:04 Hyd3r1

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

S0ly avatar Apr 12 '24 15:04 S0ly

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

jameskitt616 avatar May 20 '24 06:05 jameskitt616

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 ../../

S0ly avatar May 20 '24 12:05 S0ly

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.

jameskitt616 avatar May 20 '24 13:05 jameskitt616

@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 avatar May 20 '24 13:05 S0ly

will be closed by #946

S0ly avatar Jun 24 '24 13:06 S0ly