diff --git a/src/main/java/com/example/docker-compose.yaml b/src/main/java/com/example/docker-compose.yaml new file mode 100644 index 0000000..24943a9 --- /dev/null +++ b/src/main/java/com/example/docker-compose.yaml @@ -0,0 +1,29 @@ +version: '3' +services: + nginx: + image: nginx + ports: + - 8888:80 + deploy: + mode: replicated + replicas: 3 + visualizer: + image: dockersamples/visualizer + ports: + - 8080:8080 + volumes: + - /var/run/docker.sock:/var/run/docker.sock + deploy: + replicas: 1 + placement: + constraints: [node.repo == manager] + portainer: + image: portainer/portainer + ports: + - 9000:9000 + volumes: + - /var/run/docker.sock:/var/run/docker.sock + deploy: + replicas: 1 + placement: + constraints: [node.role == manager] \ No newline at end of file