Portainer container
This commit is contained in:
+2
-1
@@ -7,4 +7,5 @@ certs/*
|
|||||||
.env*
|
.env*
|
||||||
traefik/letsencrypt/acme.json
|
traefik/letsencrypt/acme.json
|
||||||
edu_master/volumes/
|
edu_master/volumes/
|
||||||
dockmon/dockmon_data/
|
dockmon/dockmon_data/*
|
||||||
|
portainer_data/*
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user