forked from j-griffith/BlockBox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.bk
101 lines (99 loc) · 2.59 KB
/
docker-compose.bk
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
version: "2"
services:
rabbitmq:
image: rabbitmq
ports:
- "5672:5672"
hostname: rabbitmq
networks:
cindernet:
ipv4_address: 172.49.49.5
mariadb:
image: mariadb
hostname: mariadb
environment:
- MYSQL_ROOT_PASSWORD=password
volumes:
- ./db-data:/var/lib/mysql
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
networks:
cindernet:
ipv4_address: 172.49.49.6
ports:
- 3306:3306
cinder-api:
image: cinder
hostname: cinder-api
volumes:
- ./etc-cinder:/etc/cinder
- ./init-scripts:/init-scripts
ports:
- 8776:8776
depends_on:
- mariadb
extra_hosts:
- "rabbitmq:172.49.49.5"
- "mariadb:172.49.49.6"
network_mode: "host"
command: sh /init-scripts/cinder-api.sh
cinder-scheduler:
image: cinder
hostname: cinder-scheduler
volumes:
- ./etc-cinder:/etc/cinder
depends_on:
- mariadb
- rabbitmq
- cinder-api
extra_hosts:
- "rabbitmq:172.49.49.5"
- "mariadb:172.49.49.6"
network_mode: "host"
depends_on:
- cinder-api
command: cinder-scheduler
# cinder-volume:
#image: cinder_debian
#hostname: cinder-volume
#privileged: true
#volumes:
# - ./etc-cinder:/etc/cinder
# - /dev/:/dev/
# - /run/:/run/:shared
# - /etc/localtime:/etc/localtime:ro
#links:
# - mariadb
# - rabbitmq
#depends_on:
# - mariadb
# - rabbitmq
#ports:
# - 3260:3260
#command: cinder-volume
cinder-volume:
image: cinder-volume
hostname: cinder-volume-lvm
privileged: true
volumes:
- ./etc-cinder:/etc/cinder
- /dev/:/dev/
- /run/:/run/:shared
- /etc/localtime:/etc/localtime:ro
- /lib/modules:/lib/modules:ro
depends_on:
- cinder-scheduler
ports:
- 3260:3260
extra_hosts:
- "rabbitmq:172.49.49.5"
- "mariadb:172.49.49.6"
network_mode: "host"
command: bash -c "sleep 30 && /usr/sbin/tgtd && cinder-volume"
networks:
cindernet:
driver: bridge
ipam:
driver: default
config:
-
subnet: 172.49.49.0/24