From c5cfbf9275cdea649e2490d03010d6a4b2be6204 Mon Sep 17 00:00:00 2001 From: hcornet Date: Mon, 23 Dec 2024 19:01:49 +0100 Subject: [PATCH] first sync --- docker-compose.yml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4054566..dfb104c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,41 +2,41 @@ networks: traefik_front_network: external: true - back_network_: + back_network_portainer: driver: bridge attachable: true #### SERVICES services: -### hello_world - hello_world: - container_name: gitea-app - hostname: gitea-app - image: hello-world - environment: + portainer: + container_name: portainer + hostname: portainer + image: portainer/portainer-ce:latest + command: -H unix:///var/run/docker.sock restart: always networks: -# - back_network_gitea + - back_network_portainer - traefik_front_network volumes: + - "/var/run/docker.sock:/var/run/docker.sock" + - "./data:/data" labels: - "traefik.enable=true" - "traefik.docker.network=traefik_front_network" # HTTP - - "traefik.http.routers.hello-world-http.rule=Host(`hello-world.tips-of-mine.com`)" - - "traefik.http.routers.hello-world-http.entrypoints=http" - - "traefik.http.routers.hello-world-http.priority=49" + - "traefik.http.routers.portainer-http.rule=Host(`portainer.tips-of-mine.com`)" + - "traefik.http.routers.portainer-http.entrypoints=http" # HTTPS - - "traefik.http.routers.hello-world-https.rule=Host(`hello-world.tips-of-mine.com`)" - - "traefik.http.routers.hello-world-https.entrypoints=https" - - "traefik.http.routers.hello-world-https.tls=true" - - "traefik.http.routers.hello-world-https.priority=50" - - "traefik.http.routers.gitea.service=gitea-https-service" + - "traefik.http.routers.portainer-https.rule=Host(`portainer.tips-of-mine.com`)" + - "traefik.http.routers.portainer-https.entrypoints=https" + - "traefik.http.routers.portainer-https.tls=true" + - "traefik.http.routers.portainer.service=portainer-https-service" # Middleware # Service -# - "traefik.http.services.gitea-https-service.loadbalancer.server.port=3000" + - "traefik.http.services.portainer-https-service.loadbalancer.server.port=9000" # - "traefik.http.services.gitea-https-service.loadbalancer.server.scheme=https" -# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.hostname=gitea.traefik.me" +# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.hostname=portainer.tips-of-mine.com" # - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.method=foobar" # - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.timeout=10" # - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.interval=30" +