origin33/compose.yml

30 lines
836 B
YAML

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:
- ./learn:/usr/share/nginx/html/learn
labels:
- "traefik.enable=true"
- "traefik.http.routers.origin33.rule=Host(`origin-33.akamai-lab.com`)"