feat: Adds portainer and portainer agent.

This commit is contained in:
2025-03-15 09:53:02 -04:00
parent 9b64d416e5
commit f39f7c2e02
3 changed files with 42 additions and 0 deletions

8
portainer/README.md Normal file
View File

@@ -0,0 +1,8 @@
# Portainer
Portainer is a container orchestration tool / interface that gives a web portal to view containers
running on different machines.
The primary `compose.yml` file is the primary portainer docker compose file, and is used for the
primary portainer instance. The `agent-compose.yml` is used on other / extra machines that you would
like to integrate into the primary portainer instance known as `environments`.

View File

@@ -0,0 +1,16 @@
networks:
proxy:
external: true
services:
portainer_agent:
image: portainer/agent:latest
container_name: portainer_agent
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes:
ports:
- 9001:9001
labels:
com.centurylink.watchtower.enable: true

18
portainer/compose.yml Normal file
View File

@@ -0,0 +1,18 @@
networks:
proxy:
external: true
services:
portainer:
image: portainer/portainer-ce:alpine-sts
container_name: portainer
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/data
networks:
- proxy
ports:
- 9010:9000 # optional if behind reverse proxy.
labels:
com.centurylinklabs.watchtower.enable: true