Created
February 6, 2024 15:43
-
-
Save dublado/22bafaccdd2b1e91b9fb9bcac3b29d98 to your computer and use it in GitHub Desktop.
docker swarm test in docker host
This file contains 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.8' | |
services: | |
docker_host_1: | |
image: docker:dind | |
privileged: true | |
volumes: | |
- docker_host_1_data:/var/lib/docker | |
networks: | |
- docker_network | |
docker_host_2: | |
image: docker:dind | |
privileged: true | |
volumes: | |
- docker_host_2_data:/var/lib/docker | |
networks: | |
- docker_network | |
docker_host_3: | |
image: docker:dind | |
privileged: true | |
volumes: | |
- docker_host_3_data:/var/lib/docker | |
networks: | |
- docker_network | |
networks: | |
docker_network: | |
driver: bridge | |
volumes: | |
docker_host_1_data: | |
docker_host_2_data: | |
docker_host_3_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment