Docker image for Swift all-in-one which using authentication with Keystone
254
This image using bouncestorage/swift-aio then add keystoneauth by follow swift-controller-install
| Environment Variables | Default Value | Description |
|---|---|---|
| KEYSTONE_AUTH_URI | Keystone auth uri | |
| KEYSTONE_AUTH_URL | Keystone auth url | |
| KEYSTONE_PROJECT_DOMAIN_ID | default | Keystone project doamin id |
| KEYSTONE_USER_DOMAIN_ID | default | Keystone user domain id |
| KEYSTONE_PROJECT_NAME | Keystone project name | |
| KEYSTONE_USERNAME | Keystone auth username | |
| KEYSTONE_PASSWORD | Keystone auth password |
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
Content type
Image
Digest
Size
104.2 MB
Last updated
almost 7 years ago
docker pull biszx/openstack-swift-keystone