From 46d0499c6f6464722463227549e6170cdcabf460 Mon Sep 17 00:00:00 2001 From: meftimes Date: Wed, 20 Mar 2024 11:56:57 -0400 Subject: [PATCH] add portainer container --- portainer/portainer.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 portainer/portainer.yml diff --git a/portainer/portainer.yml b/portainer/portainer.yml new file mode 100644 index 0000000..4baedb7 --- /dev/null +++ b/portainer/portainer.yml @@ -0,0 +1,24 @@ +version: "3" + +services: + portainer: + image: portainer/portainer-ce + container_name: portainer + security_opt: + - no-new-privileges:true + networks: + - proxy + volumes: + - /etc/localtime:/etc/localtime:ro + - /var/run/docker.sock:/var/run/docker.sock:ro + - ./data:/data + labels: + - "traefik.enable=true" + - "traefik.http.routers.portainer-secure.entrypoints=websecure" + - "traefik.http.routers.portainer-secure.rule=Host(`portainer.meftimes.com`)" + - "traefik.http.services.portainer.loadbalancer.server.port=9000" + restart: unless-stopped + +networks: + proxy: + external: true