version: '3' services: traefik: # restart: unless-stopped image: traefik:v2.10 command: --api.insecure=true --providers.docker ports: - "80:80" - "8080:8080" volumes: - /var/run/docker.sock:/var/run/docker.sock app1: image: traefik/whoami labels: - "traefik.http.routers.app1.rule=Host(`app1.jpedro.me`)" app2: image: traefik/whoami labels: - "traefik.http.routers.app2.rule=Host(`app2.jpedro.me`)" echo: image: jpedrob/echo labels: - "traefik.http.routers.echo.rule=Host(`echo.jpedro.me`)" mysql: image: mysql environment: MYSQL_ROOT_PASSWORD: root ports: - "3306:3306" # labels: # - "traefik.http.routers.echo.rule=Host(`mysql.jpedro.me`)" adminer: image: adminer ports: - "7070:8080" # restart: always labels: - "traefik.http.routers.echo.rule=Host(`adminer.jpedro.me`)"