-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
48 lines (46 loc) · 1 KB
/
Copy pathcompose.yaml
File metadata and controls
48 lines (46 loc) · 1 KB
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
version: '3'
services:
cloudstack:
image: localhost/cloudstack-mgt:latest
hostname: management.cloudstack.local
restart: unless-stopped
ports:
- 8080:8080
- 8443:8443
- 8250:8250
- 9091:9090
depends_on:
- mysql
cap_add:
- SYS_ADMIN
- SYS_RESOURCE
- DAC_READ_SEARCH
- IPC_LOCK
volumes:
- ./cloudstack-init.env:/etc/default/cloudstack-init:Z
- cs-config:/etc/cloudstack:Z
- cs-data:/var/cloudstack:Z
logging: &default_logging
driver: "json-file"
options:
max-size: "1M"
max-file: "10"
mysql:
image: docker.io/library/mysql:8.0-debian
restart: unless-stopped
expose:
- 3306
volumes:
- ./cloudstack.cnf:/etc/mysql/conf.d/cloudstack.cnf:Z
- mysql-data:/var/lib/mysql:Z
environment:
- MYSQL_ROOT_PASSWORD=root
logging:
<<: *default_logging
volumes:
cs-config:
driver: local
cs-data:
driver: local
mysql-data:
driver: local