services: rancher: image: rancher/rancher:stable restart: unless-stopped privileged: true ports: - "50001:80" - "50002:443" volumes: - ./rancher_volume:/var/lib/rancher