批量启动compose

mariadb:
image: "mariadb:v0.3"
container_name: mariadb
hostname: mariadb
ports:

  • "3306:3306"
    environment:
  • init=true
    command: /opt/entrypoint.sh
    volumes:
  • /var/log/:/var/log/
  • /data/mysql/:/var/lib/mysql
    rabbitmq:
    image: "rabbitmq:v0.3"
    container_name: rabbitmq
    hostname: rabbitmq
    ports:
  • "4369:4369"
  • "25672:25672"
  • "5672:5672"
    command: /opt/init_rabbitmq.sh
    memcache:
    image: "memcache:v0.3"
    container_name: memcache
    hostname: memcache
    ports:
  • "11211:11211"
    command: "/usr/bin/memcached -u root"
    volumes:
  • /var/log/:/var/log/
  • /etc/hosts:/etc/hosts
    keystone:
    image: "keystone:v0.3"
    container_name: keystone
    hostname: keystone
    environment:
  • init=true
    links:
  • mariadb
    ports:
  • "35357:35357"
  • "5000:5000"
    command: "/opt/init_keystone.sh"
    volumes:
  • /data/keystone/:/var/log/keystone/
    glance:
    image: "glance:v0.3"
    container_name: glance
    hostname: glance
    environment:
  • init=true
    command: "/opt/init_glance.sh"
    links:
  • mariadb
  • rabbitmq
  • keystone
  • memcache
    ports:
  • 9191:9191
  • 9292:9292
    volumes:
  • /data/glance/:/var/lib/glance/
    neutron:
    image: "neutron:v0.3"
    container_name: neutron
    hostname: neutron
    privileged: true
    environment:
  • init=true
    command: "/opt/init_neutron.sh"
    links:
  • mariadb
  • rabbitmq
  • memcache
  • keystone
    ports:
  • 9696:9696
    nova:
    image: "nova:v0.3"
    container_name: nova
    hostname: nova
    privileged: true
    environment:
  • init=true
    command: "/opt/init_compute_control.sh"
    links:
  • mariadb
  • rabbitmq
  • memcache
  • keystone
  • glance
  • neutron
    ports:
  • 6080:6080
  • 8774:8774
  • 8775:8775
    dashboard:
    image: "dashboard:v0.3"
    container_name: dashboard
    hostname: dashboard
    command: "/usr/sbin/httpd -DFOREGROUND"
    links:
  • memcache
  • keystone
    ports:
  • 80:80