From cb04e7a989b1261c19ac427d5cbf4ea07d4813a4 Mon Sep 17 00:00:00 2001 From: valentin Date: Tue, 9 May 2023 17:43:37 +0200 Subject: [PATCH] docker --- docker-compose.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..eb9712d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,26 @@ +version: '3.8' +services: + marp: + image: marpteam/marp-cli + volumes: + - ./:/home/marp/app + networks: + - traefik_web + ports: + - "8022:22" + labels: + - traefik.enable=true + # Creates a router called "moo" for the container, and sets up a rule to link the container to certain rule, + # in this case, a Host rule with our MAILCOW_HOSTNAME var. + - traefik.http.routers.humaintals.rule=Host(`humantalks.baraise.fr`) + # Enables tls over the router we created before. + # Specifies which kind of cert resolver we'll use, in this case le (Lets Encrypt). + # Creates a service called "moo" for the container, and specifies which internal port of the container + # should traefik route the incoming data to. + - traefik.http.services.humaintals.loadbalancer.server.port=8080 + # Specifies which entrypoint (external port) should traefik listen to, for this container. + # websecure being port 443, check the traefik.toml file liked above. + - traefik.http.routers.humaintals.entrypoints=websecure + # Make sure traefik uses the web network, not the mailcowdockerized_mailcow-network + - traefik.docker.network=traefik_web + command: "-I /home/marp/app/ -s"