I’ve set up an instance of Cockpit using this Docker Compose file:
version: "3.7" services: cockpit: # https://hub.docker.com/r/agentejo/cockpit # https://github.com/agentejo/cockpit-docker image: agentejo/cockpit # let apache create files and folders with your user_id:user_group_id # In my case, I'm the default user with id 1000 and I'm a member of the group with gid 1000 user: 1000:1000 volumes: # mount storage folder into the docker container - ./addons:/var/www/html/addons - ./config:/var/www/html/config - ./storage:/var/www/html/storage ports: - 8080:80 stdin_open: true # docker run -i tty: true # docker run -t # apache can't start without that fix if the user was changed # see https://hub.docker.com/_/php/ (scroll down to "Running as an arbitrary user") sysctls: - net.ipv4.ip_unprivileged_port_start=0 # override the entrypoint, that tries to change the ownership to 33:33 after the container started # see https://github.com/agentejo/cockpit-docker/blob/master/entrypoint#L5 entrypoint: ["apache2-foreground"]
This is working great locally on my PC, but I’m having issues deploying this on a DigitalOcean droplet. I can log in without issues at
http://<ip>/auth/login?to=/ but once I’m logged in, the
http://<ip> page is just blank. If I inspect the page, there are no errors in the console, and the HTML body is empty. I’m not sure what could be wrong, maybe something with http vs https?
Any insight would be helpful!