Getting Started
- Clone the Local Ingress repository.
- Follow the installation instructions for your system.
- Start the stack.
- Add
ingress-net
network to projects/services compose file.
- Add container labels and attach containers to projects/services compose file.
services:
app:
labels:
- "traefik.enable=true"
- "traefik.http.routers.example-app.rule=Host(`app.example.test`)"
- "traefik.http.routers.example-app.entrypoints=websecure"
- "traefik.http.routers.example-app.tls=true"
- "traefik.http.routers.example-app.tls.certresolver=default"
- "traefik.http.routers.example-app.service=example-app"
- "traefik.http.services.example-app.loadbalancer.server.port=80"
- "traefik.docker.network=ingress-net"
networks:
- default # include any other docker networks first
- ingress-net # include ingress-net last
-
Start projects/services.
-
Access your project/service via the ingress: https://app.example.test