![]() Here we define our first service and the networks and volumes used by the services. Open it with nano or your favourite text editor. In your git repo, create a directory called global, inside which all the config files for our global services will live. I will be linking a repo for this tutorial at the end of the post, feel free to create a fork and modify it to test it out. I recommend creating a git repository to make maintaining these configs easier. Here we will be working with docker-compose files to define the container stacks for our infrastructure. Step 3 - Creating the Global Infrastructure Stack Then click the Save button at the bottom of the page to apply the setting.ĭone! You have now setup Webmin on your server. Locate the Hostname field, and enter your Fully-Qualified Domain Name into the field. This will take you to the Hostname and DNS Client page. Look for the System hostname field and click on the link to the right, as shown in the following figure: You now have to set the server’s hostname. ![]() Once you log in, the first screen you will see is the Webmin dashboard. Sign in with the non-root user you created in the first part of this tutorial. Allow the exception and proceed, we will be securing this soon. This warning may say something different depending on your browser, but the reason for it is that the server has generated a self-signed certificate. Note: When logging in for the first time, you will see an “Invalid SSL” warning. Next, Navigate to in your web browser, replacing your_domain with the domain name pointing to your server’s IP address, or the server’s IP address itself. To be able to access it, we need to configure ufw to allow traffic to port 10000. Root password, or as any user who can use sudo. Then we install Webmin: sudo apt install webminĪt the end of the install process, you will get the following output: Webmin install complete. Update the list of packages again in order to include the Webmin repository: sudo apt update Next, you’ll add the Webmin PGP key so that your system will trust the new repository.ĭownload the Webmin PGP key with wget and add it to your system’s list of keys: wget -q -O- | sudo apt-key add If you used nano, do so by pressing CTRL+X, Y, then ENTER. Then add the following line to the bottom of the file to add the new repository. Here, we’ll use nano: sudo nano /etc/apt/sources.list We do this by adding the repository to the /etc/apt/sources.list file. Then we add the Webmin repository to so that we can install and update Webmin using apt package manager. Now, Apply execute permissions to the binary with: sudo chmod +x /usr/local/bin/docker-composeĬheck to make sure you have docker-compose working by executing it docker-compose -versionįirst you need to update your server’s package index. If you have problems installing with curl, make sure you have curl installed, if not follow the command below to set it up and then try the above command again. sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose Follow the instructions below to set it up. You can install docker-compose by fetching the latest release from the compose repository on GitHub. Let’s get started! Step 1 - Install Docker Compose
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |