Files
datamesh/docker-compose.yml
valentin cb04e7a989 docker
2023-05-09 17:43:37 +02:00

27 lines
1.2 KiB
YAML

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"