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"