version: '3.4'

services:
  traefik:
    image: traefik:v2.10.4
    container_name: traefik
    restart: unless-stopped
    networks:
      - oc
    command:
      - "--api.insecure=true"
      - "--providers.docker=true"
      - "--entrypoints.web.address=:80"
    ports:
      - "80:8000"  # Expose Traefik on port 8000    
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

volumes:
  oc-data:

networks: 
  oc:
    external: true