Skip to content

Latest commit

 

History

History
72 lines (52 loc) · 1.59 KB

README.md

File metadata and controls

72 lines (52 loc) · 1.59 KB

Xen Orchestra Docker Container

stable 4.x branch of Xen Orchestra

Image Installation

From Docker Hub:

docker pull brijohn/xen-orchestra

From Source:

git clone https://github.com/brijohn/docker-xen-orchestra.git
cd docker-xen-orchestra
docker build -t "xen-orchestra:latest" --rm --no-cache .

Running the Container

Create a set of volumes used to store the XO databases.

docker volume create --name xo-redis
docker volume create --name xo-server

Next launch the container using the previously created volumes.

docker run -d -p 8000:8000  -v xo-redis:/var/lib/redis \
-v xo-server:/var/lib/xo-server \
--name xen-orchestra brijohn/xen-orchestra

Log Files

Use docker's logging functionality to print out the xo-server log file.

docker logs xen-orchestra

Adding SSL support

If SSL support is needed, you will need to rebuild the container after modifying the xo-server.yaml file by adding lines specifying the certificate and key file.

Example SSL yaml file

user: 'app'
http:
  listen:
    -
      host: '0.0.0.0'
      port: 8000
      cert: <path/to/cert/file>
      key:  <path/to/key/file>
  mounts:
    '/': '/app/xo-web/dist/'
redis:
    uri: 'tcp://localhost:6379'

For a full list of SSL/TLS options see: NodeJS:tls.createServer

Author

Brian Johnson - Github - brijohn@gmail.com

Distributed under the GPL 3 license. See LICENSE for more information.