diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..1868b05 --- /dev/null +++ b/compose.yml @@ -0,0 +1,29 @@ +version: '3.8' + +services: + traefik: + image: traefik:latest + container_name: "traefik" + command: + - "--providers.docker=true" + - "--api.dashboard=true" + - "--api.insecure=true" + - "--providers.docker.exposedbydefault=false" + - "--entrypoints.web.address=:80" + ports: + - "80:80" + - "443:443" # Optional for HTTPS (requires additional configuration) + - "8080:8080" + volumes: + - "/var/run/docker.sock:/var/run/docker.sock:ro" + # - ./traefik.yml:/etc/traefik/traefik.yml # Optional custom Traefik configuration + + origin33: + # image: harbor.akamai-lab.com/learnakamai/origin33:latest + build: app + scale: 2 + volumes: + - ./html:/usr/share/nginx/html + labels: + - "traefik.enable=true" + - "traefik.http.routers.origin33.rule=Host(`origin-33.akamai-lab.com`)" \ No newline at end of file