helderjnpinto / dockerCD-portainer-watchtower

Files to auto deploy docker containers github actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dockerCD-portainer-watchtower

Files to auto deploy docker containers github actions

Usage

This setup comes up with the Traefik v2.2.8 reverse proxy to access the Portainer instance via a virtual host, has support for SSL certificates using Let's Encrypt and automatic redirection from http to https.

The default configuration will make Portainer frontend available via the portainer.yourdomain.com domain. If you wish to change this, update the traefik.http.routers.frontend.rule=Host(portainer.yourdomain.com) label for the Portainer service in the docker-compose.yml file.

If you're going to use Edge agents. When you set up the endpoint from Portainer Configuration, you need to change the Portainer Server URL setting to match with the label specified for Edge. In this sample, the URL specified for the Edge service is traefik.http.routers.frontend.rule=Host(edge.yourdomain.com).

Edge

Deploy this stack on any Docker node:

docker-compose up -d

And then access Portainer by hitting http://portainer.yourdomain.com with a web browser.

NOTE: Your machine must be able to resolve portainer.yourdomain.com (or your own domain if you updated it).

Side notes

$ docker volume create portainer_data

$ docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce

https://www.portainer.io/installation/

About

Files to auto deploy docker containers github actions

License:MIT License