From 242363bcccf4736b9ac9d70ca17fba5fd54b1308 Mon Sep 17 00:00:00 2001 From: hpl Date: Fri, 29 Nov 2024 00:35:08 +0100 Subject: [PATCH] init portainer --- dockers/portainer/.env | 1 + dockers/portainer/docker-compose.yml | 35 ++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 120000 dockers/portainer/.env create mode 100644 dockers/portainer/docker-compose.yml diff --git a/dockers/portainer/.env b/dockers/portainer/.env new file mode 120000 index 0000000..406acd1 --- /dev/null +++ b/dockers/portainer/.env @@ -0,0 +1 @@ +../../config/dockers.env \ No newline at end of file diff --git a/dockers/portainer/docker-compose.yml b/dockers/portainer/docker-compose.yml new file mode 100644 index 0000000..4c7019d --- /dev/null +++ b/dockers/portainer/docker-compose.yml @@ -0,0 +1,35 @@ +services: + portainer: + image: portainer/portainer-ce:latest + container_name: portainer + ports: + - 9000:9000 + networks: + - portainerNet + volumes: + - portainer_data:/data + - /var/run/docker.sock:/var/run/docker.sock + restart: unless-stopped + labels: + - "traefik.enable=true" + + # Frontend + - "traefik.http.routers.frontend.rule=Host(`portainer.${domain}`)" +# - "traefik.docker.network=portainerNet" + - "traefik.http.routers.frontend.entrypoints=websecure" + - "traefik.http.services.frontend.loadbalancer.server.port=9000" + - "traefik.http.routers.frontend.service=frontend" + + # Edge + - "traefik.http.routers.edge.rule=Host(`edge.${domain}`)" + - "traefik.http.routers.edge.entrypoints=websecure" + - "traefik.http.services.edge.loadbalancer.server.port=8000" + - "traefik.http.routers.edge.service=edge" + +volumes: + portainer_data: + +networks: + portainerNet: + external: true + name: portainerNet