Sign inSign up

biszx/openstack-swift-keystone

By biszx

•Updated almost 7 years ago

Docker image for Swift all-in-one which using authentication with Keystone

Image
0

254

biszx/openstack-swift-keystone repository overview

⁠Openstack Swift Keystone

This image using bouncestorage/swift-aio⁠ then add keystoneauth by follow swift-controller-install⁠

⁠Environment Variables Explanations

Environment VariablesDefault ValueDescription
KEYSTONE_AUTH_URIKeystone auth uri
KEYSTONE_AUTH_URLKeystone auth url
KEYSTONE_PROJECT_DOMAIN_IDdefaultKeystone project doamin id
KEYSTONE_USER_DOMAIN_IDdefaultKeystone user domain id
KEYSTONE_PROJECT_NAMEKeystone project name
KEYSTONE_USERNAMEKeystone auth username
KEYSTONE_PASSWORDKeystone auth password

⁠Using container with horizon and keystone

After keystone start up, create service and endpoint in keystone by swift-controller-install⁠

version: "3.5"

services:
  openstack-horizon:
    image: alvaroaleman/openstack-horizon
    container_name: openstack-horizon
    hostname: openstack-horizon
    labels:
      group: "openstack"
    ports:
      - 80:80
    networks:
      - main
    environment:
      - KEYSTONE_URL=http://openstack-keystone:35357/v3

  openstack-keystone-db:
    image: mariadb:10.4
    container_name: openstack-keystone-db
    hostname: openstack-keystone-db
    labels:
      group: "openstack"
    networks:
      - main
    volumes:
      - keystone-db:/var/lib/mysql
      - keystone-db-conf:/etc/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=password
      - MYSQL_DATABASE=keystone
      - TZ=Asia/Bangkok

  openstack-keystone:
    image: stephenhsu/keystone:9.1.0
    container_name: openstack-keystone
    hostname: openstack-keystone
    depends_on:
      - openstack-keystone-db
    labels:
      group: "openstack"
    networks:
      - main
    environment:
      - KEYSTONE_ADMIN_PASSWORD=admin
      - KEYSTONE_DB_HOST=openstack-keystone-db
      - KEYSTONE_DB_ROOT_PASSWD_IF_REMOTED=password

  openstack-swift:
    image: biszx/openstack-swift-keystone
    container_name: openstack-swift
    hostname: openstack-swift
    volumes:
      - swift:/swift/nodes
    labels:
      group: "openstack"
    ports:
      - 8080:8080
    networks:
      - main
    environment:
      - KEYSTONE_AUTH_URI=http://openstack-keystone:5000
      - KEYSTONE_AUTH_URL=http://openstack-keystone:35357
      - KEYSTONE_PROJECT_NAME=admin
      - KEYSTONE_USERNAME=admin
      - KEYSTONE_PASSWORD=admin

networks:
  main:
    external:
      name: main-network

volumes:
  keystone-db:
    external:
      name: openstack-keystone-db
  keystone-db-conf:
    external:
      name: openstack-keystone-db-conf
  swift:
    external:
      name: openstack-swift

Tag summary

Content type

Image

Digest

Size

104.2 MB

Last updated

almost 7 years ago

docker pull biszx/openstack-swift-keystone