services: ubuntu-c: hostname: ubuntu-c container_name: ubuntu-c image: spurin/diveintoansible-rc:ansible ports: - ${UBUNTUC_PORT_SSHD}:22 - ${UBUNTUC_PORT_TTYD}:7681 privileged: true volumes: - ${CONFIG}:/config - ${ANSIBLE_HOME}/shared:/shared - ${ANSIBLE_HOME}/ubuntu-c/ansible:/home/ansible - ${ANSIBLE_HOME}/ubuntu-c/root:/root networks: - diveinto.io ubuntu1: hostname: ubuntu1 container_name: ubuntu1 image: spurin/diveintoansible-rc:ubuntu ports: - ${UBUNTU1_PORT_SSHD}:22 - ${UBUNTU1_PORT_TTYD}:7681 privileged: true volumes: - ${CONFIG}:/config - ${ANSIBLE_HOME}/shared:/shared - ${ANSIBLE_HOME}/ubuntu1/ansible:/home/ansible - ${ANSIBLE_HOME}/ubuntu1/root:/root networks: - diveinto.io ubuntu2: hostname: ubuntu2 container_name: ubuntu2 image: spurin/diveintoansible-rc:ubuntu ports: - ${UBUNTU2_PORT_SSHD}:22 - ${UBUNTU2_PORT_TTYD}:7681 privileged: true volumes: - ${CONFIG}:/config - ${ANSIBLE_HOME}/shared:/shared - ${ANSIBLE_HOME}/ubuntu2/ansible:/home/ansible - ${ANSIBLE_HOME}/ubuntu2/root:/root networks: - diveinto.io ubuntu3: hostname: ubuntu3 container_name: ubuntu3 image: spurin/diveintoansible-rc:ubuntu ports: - ${UBUNTU3_PORT_SSHD}:22 - ${UBUNTU3_PORT_TTYD}:7681 privileged: true volumes: - ${CONFIG}:/config - ${ANSIBLE_HOME}/shared:/shared - ${ANSIBLE_HOME}/ubuntu3/ansible:/home/ansible - ${ANSIBLE_HOME}/ubuntu3/root:/root networks: - diveinto.io centos1: hostname: centos1 container_name: centos1 image: spurin/diveintoansible-rc:centos_stream ports: - ${CENTOS1_PORT_SSHD}:22 - ${CENTOS1_PORT_TTYD}:7681 privileged: true volumes: - ${CONFIG}:/config - ${ANSIBLE_HOME}/shared:/shared - ${ANSIBLE_HOME}/centos1/ansible:/home/ansible - ${ANSIBLE_HOME}/centos1/root:/root networks: - diveinto.io centos2: hostname: centos2 container_name: centos2 image: spurin/diveintoansible-rc:centos_stream ports: - ${CENTOS2_PORT_SSHD}:22 - ${CENTOS2_PORT_TTYD}:7681 privileged: true volumes: - ${CONFIG}:/config - ${ANSIBLE_HOME}/shared:/shared - ${ANSIBLE_HOME}/centos2/ansible:/home/ansible - ${ANSIBLE_HOME}/centos2/root:/root networks: - diveinto.io centos3: hostname: centos3 container_name: centos3 image: spurin/diveintoansible-rc:centos_stream ports: - ${CENTOS3_PORT_SSHD}:22 - ${CENTOS3_PORT_TTYD}:7681 privileged: true volumes: - ${CONFIG}:/config - ${ANSIBLE_HOME}/shared:/shared - ${ANSIBLE_HOME}/centos3/ansible:/home/ansible - ${ANSIBLE_HOME}/centos3/root:/root networks: - diveinto.io # Docker in Docker # # Usage: on host that wishes to use docker # # sudo apt-get update # sudo apt -y install docker.io # export DOCKER_HOST=tcp://docker:2375 # docker ps -a # docker: hostname: docker container_name: docker image: spurin/diveintoansible-rc:dind privileged: true volumes: - ${ANSIBLE_HOME}/shared:/shared networks: - diveinto.io portal: hostname: portal container_name: portal image: spurin/diveintoansible-rc:portal # # Portal Environment Variables # # If you run the lab remotely and need to change the links # from http://localhost:port to your ip, i.e. # http://1.2.3.4:port, add the following as an environment # variable with your IP address # # - LOCALHOST_OVERRIDE=1.2.3.4 # # By default, all links will open directly # in the portal, if you wish for them to open # as new tabs, include the following in the environment # section # # - OPEN_LINKS_AS_TABS=1 # environment: - NGINX_ENTRYPOINT_QUIET_LOGS=1 depends_on: - centos1 - centos2 - centos3 - ubuntu1 - ubuntu2 - ubuntu3 ports: - "1000:80" networks: - diveinto.io networks: diveinto.io: name: diveinto.io