Files
buckit/testing/cluster/docker-compose.yml
T
2026-05-31 13:51:53 -04:00

133 lines
3.1 KiB
YAML

name: buckit-test
services:
node1:
build:
context: .
dockerfile: Dockerfile
container_name: buckit-test-node1
hostname: node1
privileged: true
mem_limit: 256M
dns:
- 8.8.8.8
- 1.1.1.1
environment:
- DRIVES=4
- DRIVE_SIZE=1G
- MINIO_ROOT_USER=buckitadmin
- MINIO_ROOT_PASSWORD=buckitadmin
- BUCKIT_ENDPOINTS=http://node1:9000/data/drive{0...3} http://node2:9000/data/drive{0...3} http://node3:9000/data/drive{0...3} http://node4:9000/data/drive{0...3}
- SSH_ROOT_PASSWORD=buckitadmin
volumes:
- node1-drives:/var/lib/buckit-drives
tmpfs:
- /run
- /run/lock
ports:
- "9000:9000"
- "9001:9001"
- "2201:22"
networks:
- buckit-test-net
node2:
build:
context: .
dockerfile: Dockerfile
container_name: buckit-test-node2
hostname: node2
privileged: true
mem_limit: 256M
dns:
- 8.8.8.8
- 1.1.1.1
environment:
- DRIVES=4
- DRIVE_SIZE=1G
- MINIO_ROOT_USER=buckitadmin
- MINIO_ROOT_PASSWORD=buckitadmin
- BUCKIT_ENDPOINTS=http://node1:9000/data/drive{0...3} http://node2:9000/data/drive{0...3} http://node3:9000/data/drive{0...3} http://node4:9000/data/drive{0...3}
- SSH_ROOT_PASSWORD=buckitadmin
volumes:
- node2-drives:/var/lib/buckit-drives
tmpfs:
- /run
- /run/lock
ports:
- "9002:9000"
- "9003:9001"
- "2202:22"
networks:
- buckit-test-net
node3:
build:
context: .
dockerfile: Dockerfile
container_name: buckit-test-node3
hostname: node3
privileged: true
mem_limit: 256M
dns:
- 8.8.8.8
- 1.1.1.1
environment:
- DRIVES=4
- DRIVE_SIZE=1G
- MINIO_ROOT_USER=buckitadmin
- MINIO_ROOT_PASSWORD=buckitadmin
- BUCKIT_ENDPOINTS=http://node1:9000/data/drive{0...3} http://node2:9000/data/drive{0...3} http://node3:9000/data/drive{0...3} http://node4:9000/data/drive{0...3}
- SSH_ROOT_PASSWORD=buckitadmin
volumes:
- node3-drives:/var/lib/buckit-drives
tmpfs:
- /run
- /run/lock
ports:
- "9004:9000"
- "9005:9001"
- "2203:22"
networks:
- buckit-test-net
node4:
build:
context: .
dockerfile: Dockerfile
container_name: buckit-test-node4
hostname: node4
privileged: true
mem_limit: 256M
dns:
- 8.8.8.8
- 1.1.1.1
environment:
- DRIVES=4
- DRIVE_SIZE=1G
- MINIO_ROOT_USER=buckitadmin
- MINIO_ROOT_PASSWORD=buckitadmin
- BUCKIT_ENDPOINTS=http://node1:9000/data/drive{0...3} http://node2:9000/data/drive{0...3} http://node3:9000/data/drive{0...3} http://node4:9000/data/drive{0...3}
- SSH_ROOT_PASSWORD=buckitadmin
volumes:
- node4-drives:/var/lib/buckit-drives
tmpfs:
- /run
- /run/lock
ports:
- "9006:9000"
- "9007:9001"
- "2204:22"
networks:
- buckit-test-net
volumes:
node1-drives:
node2-drives:
node3-drives:
node4-drives:
networks:
buckit-test-net:
driver: bridge