-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-stack-deploy-xoa.yml
55 lines (55 loc) · 1.69 KB
/
docker-stack-deploy-xoa.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
53
54
55
version: "3.7"
services:
xoa:
image: ronivay/xen-orchestra
networks:
- web
volumes:
- type: volume
source: redis
target: /var/lib/redis
volume:
nocopy: true
- type: volume
source: xoserver
target: /var/lib/xo-server
volume:
nocopy: true
- type: volume
source: vms
target: /vms
volume:
nocopy: true
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.xoa.rule=Host(`xoa.dev.mytraefik.com`)"
- "traefik.http.routers.xoa.service=xoa-service"
- "traefik.http.services.xoa-service.loadbalancer.server.port=80"
- "traefik.http.routers.xoa.entrypoints=websecure"
- "traefik.http.routers.xoa.tls=true"
- "traefik.http.routers.xoa.tls.certresolver=mytraefik-resolver"
networks:
web:
external: true
volumes:
redis:
driver: local
driver_opts:
type: nfs
o: addr=nas.local,vers=4,hard,intr,timeo=180,bg,tcp,rw
device: ":/mnt/nas01/xoa-redis"
xoserver:
driver: local
driver_opts:
type: nfs
o: addr=nas.local,vers=4,hard,intr,timeo=180,bg,tcp,rw
device: ":/mnt/nas01/xoa-xo-server"
# Xen Orchestra cannot mount an NFS drive from inside the container so we provide one
# to use for VM backups that is a local path mapped to an NFS share at the container level
vms:
driver: local
driver_opts:
type: nfs
o: addr=nas.local,vers=4,hard,intr,timeo=180,bg,tcp,rw
device: ":/mnt/nas01/xcp-vms"