Giter Site home page Giter Site logo

How to access swarmpit? about swarmlet HOT 12 CLOSED

swarmlet avatar swarmlet commented on May 12, 2024
How to access swarmpit?

from swarmlet.

Comments (12)

sardaukar avatar sardaukar commented on May 12, 2024 1

Hey sorry have been busy lately, will check this out soon!

from swarmlet.

sardaukar avatar sardaukar commented on May 12, 2024

Also, swarmlet info tells me unknown command. Is that a known issue?

from swarmlet.

woudsma avatar woudsma commented on May 12, 2024

Yeah, at this stage there are some things not implemented, such as swarmlet info.
Sorry 😅 I have to update the docs.

To access a web service you first need to configure the domain name. You need to clone the swarmpit repo from the swarm, change the URL in the .env file, and push again to redeploy and configure services included by Swarmlet (Matamo and Swarmpit atm).

from swarmlet.

woudsma avatar woudsma commented on May 12, 2024

*Try to pull the Swarmpit repo from the swarm using git clone git@swarm:swarmpit, edit, commit and git push origin master.

Traefik usually takes some time to generate the SSL certs, a minute or two.

from swarmlet.

sardaukar avatar sardaukar commented on May 12, 2024

I think the hostname setting probably has an issue. I see

remote: =====> Stack deployed:
remote: [swarmpit] — https://swarmpit./home/git/swarmpit

the $HOSTNAME is set to the proper value, though.

from swarmlet.

woudsma avatar woudsma commented on May 12, 2024

@sardaukar Exactly, and I'm not sure why $HOSTNAME is not displayed. Probably because the deployments service runs the build in a Docker container and doesn't have a hostname. In any case you should define the domain name in the .env file of any web service - at the moment.

This workflow should also be improved and explained in the docs. If you feel like helping out, please do! 👍

from swarmlet.

sardaukar avatar sardaukar commented on May 12, 2024

I'll have a look at this tomorrow! Thanks

from swarmlet.

woudsma avatar woudsma commented on May 12, 2024

I'm curious if you've managed to host Swarmpit on your domain yet using Swarmlet.
Let me know when you do! 😃

Later today I'm going to update the docs on how to configure Swarmpit, Matomo and optionally Swarmprom/Portainer.

from swarmlet.

sardaukar avatar sardaukar commented on May 12, 2024

Yeah, I'm curious about that too. It'd be great to just work out of the box.

from swarmlet.

woudsma avatar woudsma commented on May 12, 2024

100% agree.
Have you tried these steps?

# on your local machine

git clone git@swarm:swarmpit
cd swarmpit
nano .env  # edit DOMAIN=swarmlet.dev to your domain
git add . && git commit -m 'update'
git push origin master

If the service is not accessible online after a few minutes, you could try following the logs of both Swarmpit and Traefik if you can find any clues.

# on the server

docker service logs swarmpit_app -f
docker service logs loadbalancer_traefik -f

from swarmlet.

woudsma avatar woudsma commented on May 12, 2024

I've just updated the master branch with some fixes, setting a root domain during installation should fix this issue. You can try it using:

curl -fsSL https://get.swarmlet.dev | bash -s ROOT_DOMAIN=dev.mydomain.com

(assuming *.dev.mydomain.com is pointed to the server you're installing Swarmlet on).

This should make these domains accessible after installation:

https://swarmpit.dev.mydomain.com
https://matomo.dev.mydomain.com
https://traefik.dev.mydomain.com
https://consul.dev.mydomain.com

Please let me know if you get the chance to try it out!

from swarmlet.

woudsma avatar woudsma commented on May 12, 2024

Closing this for now, please re-open if you are still running into this issue after a fresh installation.

from swarmlet.

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.