version: '2' services: traefik2: image: traefik:latest container_name: traefik2 restart: unless-stopped networks: - web ports: - "80:80" - "443:443" volumes: - /var/run/docker.sock:/var/run/docker.sock - ./traefik.yml:/etc/traefik/traefik.yml - ./acme.json:/acme.json networks: web: external: true