Hi guys,
I'm new to traefik and I'm stuck for 2 days
I plan to use traefik to have several services, for example several websites
I set up my traefik container with its conf file and log files etc ...
entryPoints:
http:
address: ":80"
api:
insecure: true
dashboard: true
debug: true
providers:
docker:
exposedbydefault: false
Then, I tried to set up a docker-compose for a website
version: "3"
services:
website1:
# ---- Build instructions ----
build:
context: .
dockerfile: Dockerfile
image: image-website1
container_name: container-website1
# ---- Container information ----
restart: unless-stopped
volumes:
- "./app:/website1/app:ro"
labels:
- "traefik.enable=true"
- "traefik.http.services.website1.loadbalancer.server.port=7931"
- "traefik.http.routers.website1.entrypoints=http"
- "traefik.http.routers.website1.rule=Path(`/`)"
My service entrypoint :
ENTRYPOINT ["gunicorn", "--workers" ,"2", "--bind", ":7931", "wsgi:app"
The problem when I go to localhost (port 80 by default nothing happens)
If someone can explains to me what am I doing wrong I would be happy !!