-
Notifications
You must be signed in to change notification settings - Fork 41
/
docker-compose.yml
52 lines (49 loc) · 1.96 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '3'
services:
xen-orchestra:
restart: unless-stopped
image: ronivay/xen-orchestra:latest
container_name: xen-orchestra
stop_grace_period: 1m
ports:
- "80:80"
#- "443:443"
environment:
- HTTP_PORT=80
#- HTTPS_PORT=443
#redirect takes effect only if HTTPS_PORT is defined
#- REDIRECT_TO_HTTPS=true
#if HTTPS_PORT is defined and CERT/KEY paths are empty, a self-signed certificate will be generated
#- CERT_PATH='/cert.pem'
#- KEY_PATH='/cert.key'
# capabilities are needed for NFS mount
cap_add:
- SYS_ADMIN
# additional setting required for apparmor enabled systems. also needed for NFS mount
security_opt:
- apparmor:unconfined
volumes:
- xo-data:/var/lib/xo-server
- redis-data:/var/lib/redis
# to preserve xo-server config on host dir after generated by container
#- /path/to/config:/etc/xo-server
# mount certificate files to container if HTTPS is set with cert/key paths
#- /path/to/cert.pem:/cert.pem
#- /path/to/cert.key:/cert.key
# mount your custom CA to container if host certificates are issued by it and you want XO to trust it
#- /path/to/ca.pem:/host-ca.pem
# logging
logging: &default_logging
driver: "json-file"
options:
max-size: "1M"
max-file: "2"
# 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"
volumes:
xo-data:
redis-data: