-
Notifications
You must be signed in to change notification settings - Fork 35
/
docker-compose.yml
43 lines (42 loc) · 1.08 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
version: '3'
services:
orchestra:
restart: unless-stopped
image: ezka77/xen-orchestra-ce:latest
container_name: XO_server
ports:
- "8000:8000"
depends_on:
- redis
environment:
- DEBUG=xo:main
- NODE_ENV=production
- XOA_PLAN=5
#privileged: true
# SYS_ADMIN should be enough capability to use NFS mount
cap_add:
- SYS_ADMIN
# LVM
devices:
- "/dev/fuse:/dev/fuse"
- "/dev/loop-control:/dev/loop-control"
# - "/dev/loop0:/dev/loop0"
volumes:
- xo-data:/storage
logging: &default_logging
driver: "json-file"
options:
max-size: "1M"
max-file: "2"
redis:
restart: unless-stopped
container_name: XO_redis
image: redis:alpine
command: redis-server --appendonly yes
volumes:
- redis-data:/data
logging:
<<: *default_logging
volumes:
xo-data:
redis-data: