Sign inSign up

sharet/diveintolabs-compose:latest

Manifest digest

sha256:be75efef905cfe055d63c6e823ae1fce572af623df11cc61d3a447e8440500c6

Last pushed

28 days by sharet

Type

Compose

Manifest digest

sha256:be75efef905cfe055d63c6e823ae1fce572af623df11cc61d3a447e8440500c6

Compose file content

name: kubernetes-dive-into-kubernetes
services:
  bootstrap:
    container_name: bootstrap-diveinto-lab
    depends_on:
      ssh-keys-and-config:
        condition: service_completed_successfully
        required: true
    environment:
      COMPOSE_MANAGED: "true"
    hostname: bootstrap
    image: spurin/diveintolabs:bootstrap
    networks:
      lab.diveinto.io: null
    privileged: true
    volumes:
      - type: volume
        source: config
        target: /config
        volume: {}
      - type: bind
        source: /var/run/docker.sock
        target: /docker/docker.sock
        bind: {}
  portal:
    container_name: portal-diveinto-lab
    depends_on:
      bootstrap:
        condition: service_started
        required: true
    environment:
      BOOTSTRAPAPI_INTERNAL_URL: http://bootstrap:8000
      COMPOSE_MANAGED: "true"
      REVERSE_PROXY_UPSTREAM_HOST: bootstrap
    hostname: portal
    image: spurin/diveintolabs:portal
    networks:
      lab.diveinto.io: null
    ports:
      - mode: ingress
        target: 3000
        published: "32635"
        protocol: tcp
      - mode: ingress
        target: 1000
        published: "32640"
        protocol: tcp
      - mode: ingress
        target: 1001
        published: "32641"
        protocol: tcp
      - mode: ingress
        target: 1002
        published: "32642"
        protocol: tcp
      - mode: ingress
        target: 1003
        published: "32643"
        protocol: tcp
    volumes:
      - type: volume
        source: config
        target: /config
        read_only: true
        volume: {}
  ssh-keys-and-config:
    command:
      - bash
      - -c
      - if [ -f /config/guest_ssh ]; then echo "SSH keys exist, skipping generation";
        exit 0; fi; ssh-keygen -f /config/guest_ssh -P "" <<< y; cp -rf /config/guest_ssh
        /config/root_ssh; cp -rf /config/guest_ssh.pub /config/root_ssh.pub; echo
        guest > /config/guest_name; echo guest > /config/guest_passwd; echo "/bin/bash"
        > /config/guest_shell; echo root > /config/root_passwd
    container_name: shared-ssh-keys-diveinto-lab
    deploy:
      restart_policy:
        max_attempts: 0
    hostname: shared-ssh-keys
    image: spurin/ssh-client
    networks:
      default: null
    volumes:
      - type: volume
        source: config
        target: /config
        volume: {}
networks:
  default:
    name: kubernetes-dive-into-kubernetes_default
  lab.diveinto.io:
    name: lab.diveinto.io
volumes:
  config:
    name: kubernetes-dive-into-kubernetes_config

Docker commands

docker compose -f oci://sharet/diveintolabs-compose:latest up

Use the above command to pull and run the Compose file. Learn more.

Images used

Image


Pulls

10K+

Stars

0

Last Updated

over 3 years

Image


Pulls

10K+

Stars

0

Last Updated

11 days