docker-compose.yml für Traefik erstellen

Estimated reading: 1 minute 6 views

Datei:
/opt/project-wiki/docker-compose.yml

Öffnen:

nano docker-compose.yml

Inhalt:

version: "3.9"

services:
  traefik:
    image: traefik:v3.0
    container_name: traefik
    restart: unless-stopped
    command:
      - "--configFile=/traefik.yml"
    ports:
      - "80:80"
      - "443:443"
    networks:
      - web
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock:ro"
      - "./traefik/traefik.yml:/traefik.yml:ro"
      - "./traefik/acme.json:/letsencrypt/acme.json"
      - "./traefik/dynamic:/dynamic"

networks:
  web:
    driver: bridge

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

Share this Doc

docker-compose.yml für Traefik erstellen

Or copy link

CONTENTS