See https://hub.docker.com/r/xbrowsersync/api
6.4K
Dockerized xBrowserSync
$ docker run -d -p 8080:8080 \
--name xbrowsersync \
-v /path/to/settings.json:/xbrowsersync/config/settings.json:ro \
pmkq/xbrowsersync
Copy this file and edit to your needs. Configure the volume to use this file, provided to the Docker.
-v /path/to/settings.json:/xbrowsersync/config/settings.json:ro
More info about contents of settings.json: https://github.com/xBrowserSync/API#3-modify-configuration-settings
Update these settings in your settings.json:
{
"server": {
"https": {
"enabled": true,
"certPath": "/certs/cert.pem",
"keyPath": "/certs/private.key"
}
}
}
Run docker with a volume to your SSL certificates:
$ docker run -d -p 10443:8080 \
--name xbrowsersync \
-v /path/to/certs:/certs:ro \
-v /path/to/settings.json:/xbrowsersync/config/settings.json:ro \
pmkq/xbrowsersync
No tags have been pushed to this repository yet.