Portainer container

This commit is contained in:
2025-11-11 09:25:04 +01:00
parent 1ea91d65b7
commit 34e9771421
2 changed files with 33 additions and 1 deletions
+2 -1
View File
@@ -7,4 +7,5 @@ certs/*
.env*
traefik/letsencrypt/acme.json
edu_master/volumes/
dockmon/dockmon_data/
dockmon/dockmon_data/*
portainer_data/*
+31
View File
@@ -0,0 +1,31 @@
services:
portainer:
container_name: portainer
image: portainer/portainer-ce:lts
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./portainer_data:/data
ports:
- 9443:9443
# - 8000:8000 # Remove if you do not intend to use Edge Agents
networks:
- traefik-proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.${PORTAINER_APPNAME:-portainer}.rule=Host(`${PORTAINER_SUBDOMEN:-portainer}.${HOST:-workstation}`)"
- "traefik.http.routers.${PORTAINER_APPNAME:-portainer}.entrypoints=websecure"
- "traefik.http.routers.${PORTAINER_APPNAME:-portainer}.tls=true"
- "traefik.http.routers.${PORTAINER_APPNAME:-portainer}.tls.certresolver=le"
- "traefik.http.services.${PORTAINER_APPNAME:-portainer}.loadbalancer.server.port=9443"
- "traefik.http.services.${PORTAINER_APPNAME:-portainer}.loadbalancer.server.scheme=https"
volumes:
portainer_data:
name: portainer_data
networks:
default:
name: portainer_network
traefik-proxy:
external: true