-
Save this as docker-compose.yml (and the related Dockerfile) into a folder called industry-idle
-
IMPORTANT: Update the password, and comment out the last section "volumes" of docker-compose.yml (the last line) by putting a "#" before it, then run:
docker-compose up -d docker cp industry-idle_vnc_1:/headless data docker-compose down
This creates the container with a new Chrome profile inside the container, and copies the fresh user profile to the local ./data directory (it will later be mounted for persistence)
-
Now edit docker-compose.yml and re-enable (un-comment) the Volumes section, then:
docker-compose up -d docker-compose run --entrypoint="" --user="0" vnc chown -R 1000:1000 /headless
This starts the container with the volume mounted (so user data persists across container restarts) and then fixes the ownership permissions for the VNC user
Now you can start and use the container as normal with just docker-compose up -d, enjoy!
- I host this on a 4gb ($20/mo) VPS from Linode in Fremont, CA; the machine also runs some other light workloads.
- I have to restart the container about once every 48 hours (fluxbox stops responding, chrome freezes)
- I am able to access from about 250 miles away with very usable refresh rates from my home (gigabit) connection (5+ FPS) and my mobile (4g, ~1 FPS)