Add compose.yml
This commit is contained in:
parent
3e82a9c017
commit
90862a69dc
|
@ -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`)"
|
Loading…
Reference in New Issue