Sign inSign up

pmkq/xbrowsersync

By pmkq

•Updated about 8 years ago

See https://hub.docker.com/r/xbrowsersync/api

0

6.4K

pmkq/xbrowsersync repository overview

⁠⛔️ THIS REPOSITORY IS ARCHIVED. USE THE OFFICIAL DOCKER INSTEAD: https://github.com/xbrowsersync/api-docker⁠


⁠docker-xbrowsersync

Dockerized xBrowserSync

⁠Run

$ docker run -d -p 8080:8080 \
    --name xbrowsersync \
    -v /path/to/settings.json:/xbrowsersync/config/settings.json:ro \
    pmkq/xbrowsersync

⁠Configure settings

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⁠

⁠Environment variables
  • XBROWSERSYNC_VERSION

⁠Enable HTTPS

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

Tag Summary

No tags have been pushed to this repository yet.