https://github.com/samc621/headful-puppeteer-docker
Use Puppeteer in "headful" (headless:false) mode inside a Docker container.
https://github.com/samc621/headful-puppeteer-docker
docker docker-compose nodejs puppeteer x11vnc xvfb
Last synced: about 2 months ago
JSON representation
Use Puppeteer in "headful" (headless:false) mode inside a Docker container.
- Host: GitHub
- URL: https://github.com/samc621/headful-puppeteer-docker
- Owner: samc621
- Created: 2021-04-10T01:15:15.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-10T01:15:43.000Z (about 4 years ago)
- Last Synced: 2025-03-17T14:22:10.551Z (2 months ago)
- Topics: docker, docker-compose, nodejs, puppeteer, x11vnc, xvfb
- Language: Dockerfile
- Homepage:
- Size: 6.84 KB
- Stars: 12
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# headful-puppeteer-docker
Whether headless or headful, getting Puppeteer to run inside a Docker container was pretty trivial. The challenge was displaying the GUI in headful mode.
After piecing together a few different resources, I decided to create a quick demo repo.
## Installation
You will need to have [`Docker Compose`](https://docs.docker.com/compose/install/) and/or [`Docker`](https://docs.docker.com/get-docker/) installed to use this.
## Docker
Build with:
`$ docker build -t headful-puppeteer-docker .`
Run with:
`$ docker run -p 5900:5900 headful-puppeteer-docker`
Stop with:
`$ docker stop headful-puppeteer-docker`
## Docker Compose
Build with:
`$ docker-compose build`
Run with:
`$ docker-compose up`
Stop with:
`$ docker-compose stop`