tryeing to add source container

This commit is contained in:
2024-09-11 13:58:28 +03:00
parent 6f8c6865cf
commit 6e97567f24
4 changed files with 23 additions and 6 deletions

View File

@@ -14,6 +14,20 @@ volumes:
services:
test-source-container:
image: ubuntu:noble
container_name: ubuntu
hostname: ubuntu-docker-test
user: root:root
logging:
options:
max-size: 10m
volumes_from:
- gluster-1:rw
networks:
- testing
command: sleep infinity
gluster-1:
build:
context: .
@@ -31,7 +45,7 @@ services:
devices:
- /dev/fuse
volumes:
- gluster-data-1:/mnt/gluster
- gluster-data-1:/tmp/gluster
networks:
- testing
command: bash /docker/glusterfs-master.sh
@@ -56,7 +70,7 @@ services:
devices:
- /dev/fuse
volumes:
- gluster-data-2:/mnt/gluster
- gluster-data-2:/tmp/gluster
networks:
- testing
command: bash /docker/glusterfs-node.sh
@@ -81,7 +95,7 @@ services:
devices:
- /dev/fuse
volumes:
- gluster-data-3:/mnt/gluster
- gluster-data-3:/tmp/gluster
networks:
- testing
command: bash /docker/glusterfs-node.sh