Changes between Version 7 and Version 8 of dockerdeployment2023


Ignore:
Timestamp:
Dec 8, 2023, 2:10:48 PM (12 months ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • dockerdeployment2023

    v7 v8  
    551. Update Your System: Ensure your system package database is up-to-date.
    66
    7 ` sudo apt update `
     7`sudo apt update`
    88
    99`sudo apt upgrade`
     
    11112. Install Docker: Install Docker using the convenience script provided by Docker.
    1212
    13 ` curl -fsSL https://get.docker.com -o get-docker.sh`
    14 
    15 ` sudo sh get-docker.sh`
    16 
    17 3. Add User to Docker Group (Optional): If you want to run Docker commands without sudo, add your user to the docker group.
    18 
    19 ` sudo usermod -aG docker ${USER}`
     13`curl -fsSL https://get.docker.com -o get-docker.sh`
     14
     15`sudo sh get-docker.sh`
     16
     173. Add User to Docker Group: to run Docker commands without sudo, add your user to the docker group.
     18
     19`sudo usermod -aG docker ${USER}`
    2020
    2121Log out and log back in for the group changes to take effect.
     
    43436.3 Access the Web Application: If you're accessing the server locally, open a web browser and navigate to: (Since you are connected via SSH lets install a text-based web browser lynx.)
    4444
    45 ` sudo apt-get install lynx`
    46 
    47 ` lynx http://localhost:8080`
     45`sudo apt-get install lynx`
     46
     47`lynx http://localhost:8080`
    4848
    49496.4 Stop and Remove the Web Application (Optional):
     
    5454` docker rm sample-webapp`
    5555 
     56
    5657Extra Ref:
    5758
    58 [https://linuxhint.com/best_linux_text_based_browsers/][]
     59
     60[https://linuxhint.com/best_linux_text_based_browsers/]
     61
    5962[https://romanzolotarev.com/ssh.html]
    6063 
     64
    6165==== Basic Docker Commands and Their Usage ====
    6266
     
    251255•          `docker-compose logs`: Shows the logs from the services.
    252256 
    253 '''Deploying WordPress with Docker Compose'''
    254 
    255 Let's deploy a WordPress application using two containers: one for WordPress and another for the MySQL database.
     257'''Deploying !WordPress with Docker Compose'''
     258
     259Let's deploy a !WordPress application using two containers: one for !WordPress and another for the MySQL database.
    256260Create a docker-compose.yml file:
    257261
     
    291295 }}}
    292296
    293 Start the WordPress and Database Containers: Navigate to the directory containing the `docker-compose.yml` file and run:
     297Start the !WordPress and Database Containers: Navigate to the directory containing the `docker-compose.yml` file and run:
    294298
    295299`docker-compose up -d`
    296300
    297 This command will start the services in detached mode. Once the services are up, you can access the WordPress site by navigating to `http://<Floating_IP>:8080` from your browser.
     301This command will start the services in detached mode. Once the services are up, you can access the !WordPress site by navigating to `http://<MASTER_IP>:8080` from your browser.
    298302 
    299303Stopping the Services: To stop the services, navigate to the same directory and run: