cinder/contrib/block-box/docker-compose.yml
John Griffith 3a2205e393 Update BlockBox
There have been a number of changes to LOCI since the introduction
of BlockBox.  In particular LOCI now offers a `universal` Dockerfile
and employees bindeps and new ARGS features of Docker to customize
images.

This patch modifies BlockBox to use the new universal LOCI repo and
also cleans up a bunch of cruft and adds an updated conf entry with
key-manager.

This patch also removes the dev environment as it's out dated and
doesn't seem to be gaining much usage.  It's easy enough to set
this up on your own, so rather than maintain it just remove it.

Change-Id: Id03ff9310fd53c4e6df300f2866b7a17cba82561
2017-10-04 13:59:01 -06:00

88 lines
2.2 KiB
YAML

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
ports:
- 3306:3306
networks:
cindernet:
ipv4_address: 172.49.49.6
volumes:
- ./.db_data:/var/lib/mysql
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
cinder-api:
image: debian-cinder
hostname: cinder-api
volumes:
- ./etc:/etc/cinder
- ./scripts:/scripts
network_mode: "host"
ports:
- 8776:8776
depends_on:
- mariadb
extra_hosts:
- "rabbitmq:172.49.49.5"
- "mariadb:172.49.49.6"
environment:
- INIT_DB=true
command: sh /scripts/cinder-api.sh
cinder-scheduler:
image: debian-cinder
hostname: cinder-scheduler
volumes:
- ./etc:/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
restart: on-failure
command: cinder-scheduler
cinder-volume:
image: lvm-debian-cinder
hostname: cinder-lvm
privileged: true
volumes:
- ./etc:/etc/cinder
- /dev/:/dev/
- /run/:/run/:shared
- /etc/localtime:/etc/localtime:ro
- /lib/modules:/lib/modules:ro
- ./scripts:/scripts
depends_on:
- cinder-scheduler
ports:
- 3260:3260
extra_hosts:
- "rabbitmq:172.49.49.5"
- "mariadb:172.49.49.6"
network_mode: "host"
restart: on-failure
command: bash -c "/scripts/lvm-service.sh"
networks:
cindernet:
driver: bridge
ipam:
driver: default
config:
-
subnet: 172.49.49.0/24