os: ubuntu
cpus: 8
memory: 8
- docker
- mongodb
- traefik
- minio
- docker registry
We want to deploy this service on the navaapp.com domain
This documentation is written under the assumption that our server has open access to the Internet
Docker will be installed correctly by running the following commands
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-pluginJust enter the following command to create a manager node
docker swarm init
Write vim /etc/docker/daemon.json and add this code in it:
{
"registry-mirrors": ["https://docker.iranserver.com"]
}Then restart the docker service with these commands:
systemctl daemon-reload
systemctl restart dockerIn each directory of this repository, we have documentation for deploying each service
Follow these steps in order: