Howto Xen XCP-NG: Difference between revisions

From Vidalinux Wiki
Jump to navigation Jump to search
Line 6: Line 6:
  git clone https://github.com/ronivay/xen-orchestra-docker
  git clone https://github.com/ronivay/xen-orchestra-docker
enable ssl in docker-compose:
enable ssl in docker-compose:
  - "443:443"
  # ports
  - REDIRECT_TO_HTTPS=true
ports:
  - CERT_PATH='/cert.pem'
  - "80:80"
- KEY_PATH='/cert.key'
  - "443:443"
  # redirect to https
  - REDIRECT_TO_HTTPS=true
  # certificates path inside container
  - CERT_PATH='/cert.pem'
  - KEY_PATH='/cert.key'
  # volumes
  # volumes
  volumes:
  volumes:
   - ./xo-data:/var/lib/xo-server
   - ./xo-data:/var/lib/xo-server
   - ./redis-data:/var/lib/redis
   - ./redis-data:/var/lib/redis
  # mount certificate files to container if HTTPS is set with cert/key paths
  # mount certificate files to container  
  - ./certs/cert.pem:/cert.pem
  - ./certs/cert.pem:/cert.pem
  - ./certs/cert.key:/cert.key
  - ./certs/cert.key:/cert.key

Revision as of 15:05, 15 May 2024

installation

download iso:

wget https://mirrors.xcp-ng.org/isos/8.2/xcp-ng-8.2.1-20231130.iso?https=1 -O xcp-ng-8.2.1-20231130.iso

install xen-orchestra

clone repo using git:

git clone https://github.com/ronivay/xen-orchestra-docker

enable ssl in docker-compose:

# ports
ports:
  - "80:80"
  - "443:443"
# redirect to https
  - REDIRECT_TO_HTTPS=true
# certificates path inside container
  - CERT_PATH='/cert.pem'
  - KEY_PATH='/cert.key'
# volumes
volumes:
  - ./xo-data:/var/lib/xo-server
  - ./redis-data:/var/lib/redis
# mount certificate files to container 
- ./certs/cert.pem:/cert.pem
- ./certs/cert.key:/cert.key
- ./certs/ca.pem:/host-ca.pem

start docker container using docker-compose:

docker-compose up -d

references