Giter Club home page Giter Club logo

Comments (10)

dvdred avatar dvdred commented on August 16, 2024 1

Hello,
I have a working compose-ui running on a Swarm Cluster without TLS. Scaling in the Swarm with the UI is very cool! This is my setup:

  • On the Swarm Master and on the other Swarm Hosts, the project folder is shared from a nfs server
  • Data needing persistence are shared like the project folder
  • The /opt/docker-compose-projects must really exist and must be the project folder or a link to it
  • The UI is running OUTSIDE the swarm cluster, it is launched on a node not on the cluster endpoint. It can be a node that is not part of the cluster
  • The command used to launch the UI is:
CLUSTER_IP=Insert the cluster ip
CLUSTER_PORT=Insert the cluster port
docker run --name composeui -p 5000:5000  \
-v "/opt/docker-compose-projects:/opt/docker-compose-projects:ro" \
-w "/opt/docker-compose-projects" \
-e DOCKER_HOST=$CLUSTER_IP:$CLUSTER_PORT \
francescou/docker-compose-ui -d

Probably this is not the better way to run it, but i hope this can help you.

from docker-compose-ui.

francescou avatar francescou commented on August 16, 2024

Hi Yue,

in order to set an HTTPS remote docker host I think you have to add two environment properties: DOCKER_CERT_PATH and DOCKER_TLS_VERIFY

e.g.

docker run \
    --name docker-compose-ui \
    -p 5000:5000 \
    -v /home/user/docker-compose-ui/demo-projects:/opt/docker-compose-projects:ro \
    -e DOCKER_HOST=remote-docker-host:2375 \
    -e DOCKER_TLS_VERIFY=1 \
    -e DOCKER_CERT_PATH=/home/user/docker-cert \
    francescou/docker-compose-ui

you can find additional info on the docker-compose repository: docs and docker_client.py

from docker-compose-ui.

francescou avatar francescou commented on August 16, 2024

Hi Yue,

did you manage to solve the issue?

from docker-compose-ui.

ymote avatar ymote commented on August 16, 2024

Here is my script which can run successfully. Please note that it is necessary to map the HTTPS certificate path to container volume and set DOCKER_CERT_PATH to the container's cert path.

docker run \
    --name docker-compose-ui \
    -p 5000:5000 \
    -v /home/user/docker-compose-ui/demo-projects:/opt/docker-compose-projects:ro \
    -v /Users/abcd/.docker/machine/machines/default:/opt/cert:ro \
    -e DOCKER_HOST=https://192.168.99.102:2376 \
    -e DOCKER_TLS_VERIFY=1 \
    -e DOCKER_CERT_PATH=/opt/cert \
    francescou/docker-compose-ui

from docker-compose-ui.

francescou avatar francescou commented on August 16, 2024

Thank you for the clarification.
I will close the issue, feel free to reopen if necessary.

/cc @dvdred

from docker-compose-ui.

 avatar commented on August 16, 2024

Hi all

What if I have swarm, but I'm not using TLS? What if I already have a swarm where I want compose-ui to live and lead? This is what I'm trying to run, which start the ui but does not build things

docker -H tcp://172.17.7.11:4000 run
-dit
--name docker-compose-ui
-p 5000:5000
-e DOCKER_HOST=http://172.17.7.11:4000
francescou/docker-compose-ui`

from docker-compose-ui.

francescou avatar francescou commented on August 16, 2024

Thanks @dvdred !
@wido-gg did you solve the issue following his guidelines?

from docker-compose-ui.

 avatar commented on August 16, 2024

I'm not sure I have.

For one side, I can connect to the swarm. The thing is, when I send
commands to do the build, or a pull, the docker engines that are part of
the swarm start to download the images but after that nothing happens.

I'll try to collect some logs. Let me know if you want to follow up here or
in a new ticket. Thanks!

El sáb., 9 de abr. de 2016 a la(s) 05:00, Francesco Uliana <
[email protected]> escribió:

Thanks @dvdred https://github.com/dvdred !
@wido-gg https://github.com/wido-gg did you solve the issue following
his guidelines?


You are receiving this because you were mentioned.

Reply to this email directly or view it on GitHub
#5 (comment)

Wido

from docker-compose-ui.

dvdred avatar dvdred commented on August 16, 2024

please @wido-gg, can you describe your setup with some more details? What happens when you do the "up" and what is the content of the docker-compose.yml?

from docker-compose-ui.

francescou avatar francescou commented on August 16, 2024

I understand you can connect to swarm so I guess it would be better to open a new issue.

Collect some logs if you can and let's follow up in a new issue

from docker-compose-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.