Docker Compose setup for a Skills Alberta Competitor machine
or, "the steps I took":
- Follow https://www.youtube.com/watch?v=MJgIm03Jxdo for Ubuntu LTS
- Assign static IP in Edge Router X on vlan 101
sudo apt install qemu-guest-agentsudo nano /etc/ssh/sshd_config.d/60-cloudimg-settings.conf(changePasswordAuthenticationtoyes)sudo systemctl restart sshsudo rebootthenip ato verify the static IP took
Then, in a jumpbox, create tmux windows for each of the hosts (preload ssh ptc@192.168.101.[51] command without hitting enter) and Ctrl+B : then setw synchronize-panes on
Then:
Enterand enter password to start SSH- Run https://docs.docker.com/engine/install/ubuntu/
sudo docker run --rm -it hello-worldto verify enginegit clone https://github.com/turt2live/skills-compose.gitcd skills-composenano compose.yamlto changeMARIADB_ROOT_PASSWORD(PMA host will get changed later).- Also break out of synchronized panes mode to set
MARIADB_PASSWORDin each VM.
- Also break out of synchronized panes mode to set
sudo docker compose buildsudo adduser skillsand follow prompts:- New password: ASSIGN TEMPORARY PASSWORD
- Full name, etc: whatever
sudo su -l skillsmkdir website && chmod 775 websiteexitto get out of skills usersudo docker compose up