# cat baam/basics/docker-compose.yaml version: '3' services: traefik: image: traefik:v2.10 command: --api.insecure=true --providers.docker ports: - 80:80 - 7100:8080 labels: - traefik.enable=true - traefik.http.routers.traefik.rule=Host(`traefik.jpedro.me`) volumes: - /var/run/docker.sock:/var/run/docker.sock networks: - apps registry: image: registry:2 restart: always # unless-stopped ports: - 5000:5000 labels: - traefik.enable=false volumes: - registry:/var/lib/registry networks: - apps hub: image: jc21/registry-ui restart: always environment: - REGISTRY_HOST=jpedro.me:5000 labels: - traefik.http.routers.hub.rule=Host(`registry.jpedro.me`) networks: - apps portainer: image: portainer/portainer restart: always # unless-stopped ports: - 9000:9000 labels: - traefik.http.routers.portainer.rule=Host(`portainer.jpedro.me`) networks: - apps volumes: - /var/run/docker.sock:/var/run/docker.sock - portainer:/data volumes: portainer: driver: local registry: driver: local networks: apps: external: true