--- name: xen-orchestra networks: xen-orchestra_net: attachable: false internal: false external: false name: xen-orchestra driver: bridge ipam: driver: default config: - subnet: 172.20.8.0/24 ip_range: 172.20.8.0/24 gateway: 172.20.8.1 driver_opts: com.docker.network.bridge.default_bridge: "false" com.docker.network.bridge.enable_icc: "true" com.docker.network.bridge.enable_ip_masquerade: "true" com.docker.network.bridge.host_binding_ipv4: "0.0.0.0" com.docker.network.bridge.name: "xen-orchestra" com.docker.network.driver.mtu: "1500" labels: com.xen-orchestra.network.description: "is an isolated bridge network." services: xen-orchestra_app: deploy: resources: limits: pids: 512 # Limits the number of processes and threads (fork bomb protection). restart: unless-stopped logging: driver: "json-file" options: max-size: "1M" max-file: "2" stop_grace_period: 1m container_name: xen-orchestra image: docker.io/ronivay/xen-orchestra:5.214.1@sha256:fcc7e7830ee09fdddf54c2b6b5f39dc8ce4cee3767c4c63ddcb6edd800440232 pull_policy: if_not_present volumes: # - /docker/xen-orchestra/production/.cert/client-cert.pem:/client-cert.pem # - /docker/xen-orchestra/production/.cert/client-key.pem:/client-key.pem # - /docker/xen-orchestra/production/.cert/ca-cert.pem:/ca-cert.pem - /docker/xen-orchestra/production/app:/var/lib/xo-server - /docker/xen-orchestra/production/redis:/var/lib/redis environment: PUID: "1000" PGID: "1000" TZ: Europe/Amsterdam # Adjust the timezone to match your local timezone. You can find the full list of timezones here https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. HTTP_PORT: 80 HTTPS_PORT: 443 REDIRECT_TO_HTTPS: false # CERT_PATH: "/docker/xen-orchestra/production/.cert/client-cert.pem" # KEY_PATH: "/docker/xen-orchestra/production/.cert/client-key.pem" domainname: xo.local # Customize this with your own domain, e.g., `xo.local` to `xo.your-fqdn-here.com`. hostname: xo networks: xen-orchestra_net: ipv4_address: 172.20.8.2 ports: - "3006:80/tcp" # HTTP # - "3007:443/tcp" # HTTPS # these are needed for file restore. # allows one backup to be mounted at once which will be umounted after some # minutes if not used (prevents other backups to be mounted during that) # add loop devices (loop1, loop2 etc) if multiple simultaneous mounts needed. # devices: # - "/dev/fuse:/dev/fuse" # - "/dev/loop-control:/dev/loop-control" # - "/dev/loop0:/dev/loop0" security_opt: - no-new-privileges:true - apparmor:unconfined cap_add: - SYS_ADMIN - DAC_READ_SEARCH labels: com.xen-orchestra.description: "is a complete solution to visualize, manage, backup and delegate your XCP-ng or XenServer infrastructure." healthcheck: disable: false test: ["CMD", "/healthcheck.sh"] interval: 10s timeout: 5s retries: 3 start_period: 10s start_interval: 5s