Last active
August 5, 2021 20:31
-
-
Save abhi-io/0cf6bec61819d28f5f9ca5a4e33854aa to your computer and use it in GitHub Desktop.
CEPH docker-compose.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.5" | |
services: | |
ceph: | |
image: ceph/daemon:v5.0.8-stable-5.0-octopus-centos-8 | |
container_name: demo-ceph | |
command: demo | |
hostname: ceph-demo | |
ports: | |
- 5000:5000 | |
- 8000:8000 | |
environment: | |
CEPH_PUBLIC_NETWORK: 172.42.0.0/16 | |
MON_IP: 172.42.0.100 | |
CEPH_DEMO_UID: sandboxId | |
CEPH_DEMO_ACCESS_KEY: sandbox | |
CEPH_DEMO_SECRET_KEY: s3cr3t | |
CEPH_DEMO_BUCKET: sandbox | |
RGW_NAME: ceph-demo | |
RGW_FRONTEND_PORT: 8000 | |
volumes: | |
- ./docker/ceph/etc/:/etc/ceph | |
- ./docker/ceph/var/:/var/lib/ceph | |
- ./docker/ceph/log/:/var/log/ceph | |
- ./docker/ceph/tools/:/tools | |
networks: | |
cluster-net: | |
ipv4_address: 172.42.0.100 | |
networks: | |
cluster-net: | |
name: ceph-cluster-net | |
driver: bridge | |
ipam: | |
config: | |
- subnet: 172.42.0.0/24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[default] | |
access_key = sandbox | |
secret_key = s3cr3t | |
host_base = 127.0.0.1:8000 | |
host_bucket = 127.0.0.1:8000 | |
use_https = False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker network create --driver=bridge --subnet=172.42.0.0/24 ceph-cluster-net | |
docker-compose up --build | |
## to remove ceph volume | |
rm docker/ceph/log/*log | |
rm -rf docker/ceph/var/* | |
## to remove ceph network | |
docker network rm ceph-cluster-net |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment