hi.
On my rasberry there runs a docker service.
I'm using portainer to manage my container. But i install everything by docker-compose.yml
Here is my file :
version: '3'
services:
portainer:
image: portainer/portainer-ce:latest
container_name: portainer
restart: always
ports:
- "9000:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /home/pi/docker/volumes/portainer:/data:rw
traefik:
image: traefik:latest
container_name: traefik
command:
- --api=true
- --api.dashboard=true
- --api.insecure=true
- --entrypoints.web.address=:80
- --entrypoints.websecure.address=:443
- --log=true
- --log.level=INFO
- --providers.docker=true
- --providers.docker.exposedbydefault=false
ports:
- "80:80"
- "443:443"
- "8080:8080"
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.rule=Host(`traefik.local`)"
- "traefik.http.routers.api.service=api@internal"
- "traefik.http.routers.api.entrypoints=web"
networks:
- traefik
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /home/pi/docker/volumes/traefik/acme.json:/acme.json
grafana:
image: grafana/grafana
container_name: grafana
labels:
- "traefik.enable=true"
- "traefik.http.routers.grafana.rule=Host(`grafana.rasberry.me`)"
- "traefik.http.services.grafana.loadbalancer.server.port=3000"
- "traefik.http.routers.grafana.entrypoints=web"
- "traefik.port=3000"
volumes:
- /home/pi/docker/volumes/grafana:/var/lib/grafana:rw
restart: always
user: "${UID}:${GID}"
depends_on:
- traefik
networks:
traefik:
external: true```
My Goal is to reach grafana service in this way :
grafana.rasberry.me
But I got curl: (6) Could not resolve host: grafana.raspberry.me