Puppet in Docker Accessing Puppet Explorer Dashboard

0 votes

I need to know what's the way to access a puppet explorer dashboard that i have configured on a docker container using a docker-compose.yml file. I have no idea as to how i could access it in a docker container. can somebody please tell me how i can do this?

Here's a part of my docker compose.yml file:

puppetboard:
       image: puppet/puppetboard
       ports:
          - 8000
puppetexplorer:
       image: puppet/puppetexplorer
       ports:
          - 80
       read_only: true
Aug 20, 2019 in Puppet by Sirajul
• 59,230 points
916 views

1 answer to this question.

0 votes

Run docker-compose up to launch the containers. 

Note that you'll see lots of output as the various software launches in parallel.

$ docker-compose up
Creating compose_puppetboard_1
Creating postgres
Creating puppet
Creating compose_puppetexplorer_1
...

One the output from compose stops, in another terminal confirm you have the containers up and running.

$ docker ps                                                                                                                                                                                                                                                             ~
CONTAINER ID        IMAGE                      COMMAND                  CREATED             STATUS              PORTS                                              NAMES
7af731797a95        puppet/puppetexplorer      "/usr/bin/caddy"         2 minutes ago       Up 2 minutes        0.0.0.0:32828->80/tcp                              compose_puppetexplorer_1
8f8aecd2cc69        puppet/puppetserver        "/opt/puppetlabs/bin/"   2 minutes ago       Up 2 minutes        0.0.0.0:32827->8140/tcp                            puppet
1fefb0ea22ff        puppet/puppetdb-postgres   "/docker-entrypoint.s"   2 minutes ago       Up 2 minutes        5432/tcp                                           postgres
910002aa3e6a        puppet/puppetboard         "/usr/bin/gunicorn -b"   2 minutes ago       Up 2 minutes        0.0.0.0:32824->8000/tcp                            compose_puppetboard_1
78bfd7967680        puppet/puppetdb            "dumb-init /docker-en"   2 minutes ago       Up 2 minutes        0.0.0.0:32826->8080/tcp, 0.0.0.0:32825->8081/tcp   compose_puppetdb_1

Note the port number for the puppetexplorer container, in my case 32828. 

If you're running docker locally you should be able to access the dashboard on 0.0.0.0:32824 (your port will likely vary). 

If you're running docker-machine then you can run docker-machine ip to determine the correct IP address. 

Using this you can access you puppet explorer dashboard.

answered Aug 20, 2019 by anonymous

Related Questions In Puppet

0 votes
1 answer

Is it possible to install puppet agent in a docker container on linux?

Hey @Janice, this is pretty simple. Create ...READ MORE

answered Mar 12, 2019 in Puppet by Jason
1,516 views
0 votes
0 answers

Puppet+Docker: Rebuild an image with respect to changes in dockerfile

I am building a docker image via ...READ MORE

Aug 13, 2019 in Puppet by Sam
• 6,260 points
1,028 views
0 votes
0 answers

Puppet+Docker: What is the equivalent of docker rm in Puppet code?

I was looking to remove a few ...READ MORE

Aug 13, 2019 in Puppet by Namik
• 1,230 points
763 views
0 votes
1 answer
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,714 views
0 votes
1 answer

Puppet in Docker : Benefit of using puppet in docker

Here's to how this approach proves beneficial: One ...READ MORE

answered Aug 19, 2019 in Puppet by Sirajul
• 59,230 points
662 views
0 votes
1 answer

Puppet in Docker: Running puppet commands inside a docker container.

You can use Puppet commands, such as resource.  The following command ...READ MORE

answered Aug 19, 2019 in Puppet by Sirajul
• 59,230 points
691 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP