Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 554 Bytes

Install.md

File metadata and controls

26 lines (23 loc) · 554 Bytes

安装

docker

docker-compose.yaml

version: '3'

services:
  reverse-proxy:
    # The official v2 Traefik docker image
    image: traefik:v2.9
    # Enables the web UI and tells Traefik to listen to docker
    command: --api.insecure=true --providers.docker
    ports:
      # The HTTP port
      - "80:80"
      # The Web UI (enabled by --api.insecure=true)
      - "8080:8080"
    volumes:
      # So that Traefik can listen to the Docker events
      - /var/run/docker.sock:/var/run/docker.sock
docker-compose up -d