Monday, February 28, 2022
How To Install Appwrite with Docker on Rocky Linux 8.5
Appwrite is a self-hosted solution that provides developers with a set of easy-to-use and integrate REST APIs to manage their core backend needs.
Docker is an open platform for developing, shipping, and running applications.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y
docker-compose --version ; docker --version
docker run -it --rm \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="install" \
appwrite/appwrite:0.12.1
https://127.0.0.1
_________________________________________________________________________________________
Running CentOS in a Docker container
CentOS is short for “Community Enterprise Operating System”.
Docker is a software platform that allows you to build, test, and deploy applications quickly.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y ; docker-compose --version ; docker --version
docker pull centos
docker run centos
docker container ls
docker images
docker run -i -t centos
cat /etc/redhat-release
_________________________________________________________________________________________
Deploy Run Portainer CE On Docker | Rocky Linux 8.5
in This Tutorial you will Learn "How To Deploy Run Portainer CE On Docker | Rocky Linux 8.5"
Portainer is a popular Docker UI that helps you visualise your containers, images, volumes and networks.
Docker is a software platform that allows you to build, test, and deploy applications quickly.
_________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y ; docker-compose --version ; docker --version
docker volume create portainer_data
docker run -d \
-p 8000:8000 -p 9443:9443 \
--name portainer \
--restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
cr.portainer.io/portainer/portainer-ce:2.11.0
docker ps
https://localhost:9443 admin/ZSPUPvQs9c7Hs23
_________________________________________________________________________________________
Deploy Run Keycloak Server in Docker Container
in This Tutorial you will learn " How To Deploy Run Keycloak Server in a Docker Container
Keycloak is an open source identity and access management solution.
Hoempage - https://www.keycloak.org/
Docker is a software platform that allows you to build, test, and deploy applications quickly.
_________________________________________________________________________________________
Server - Os: Ubuntu 20.04.3 LTS 64Bit | IP -192.168.1.80 |Hostname - ubuntu.example.com
_________________________________________________________________________________________
lsb_release -d ; hostname -I
apt update ; apt -y install docker.io docker-compose ca-certificates curl gnupg-agent software-properties-common -y
docker --version ; docker-compose --version
docker pull mariadb
docker pull jboss/keycloak
docker network create keycloak-network
mkdir /home/ubuntu/keycloak_data
docker run -d \
--name mariadb \
--net keycloak-network \
-v /home/ubuntu/keycloak_data:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD=Root@1234 \
-e MYSQL_DATABASE=keycloak \
-e MYSQL_USER=keycloak \
-e MYSQL_PASSWORD=Keycloak@1234 \
mariadb
docker run -d \
--name keycloak \
--net keycloak-network \
-p 8080:8080 \
-e KEYCLOAK_USER=admin \
-e KEYCLOAK_PASSWORD=Admin@1234 \
-e DB_ADDR=mariadb \
-e DB_USER=keycloak \
-e DB_PASSWORD=Keycloak@1234 \
jboss/keycloak
docker ps
http://192.168.1.80:8080/
_________________________________________________________________________________________
Deploy run Bitwarden server On Docker Compose
in This Tutorial you will learn " How To Run Bitwarden Password Manager in Docker Container
Docker is a software platform that allows you to build, test, and deploy applications quickly.
Bitwarden is an integrated open source password management solution for individuals, teams, and business organizations.
_________________________________________________________________________________________
Server - Os: Ubuntu 20.04.3 LTS 64Bit | IP -192.168.1.80 |Hostname - ubuntu.example.com
_________________________________________________________________________________________
lsb_release -d ; hostname -I ; hostname
mkdir bitwarden && cd bitwarden
touch docker-compose.yml ; nano docker-compose.yml
# docker-compose.yml
version: '3'
services:
bitwarden:
image: bitwardenrs/server
restart: always
ports:
- 8000:80
volumes:
- ./bw-data:/data
environment:
WEBSOCKET_ENABLED: 'true' # Required to use websockets
SIGNUPS_ALLOWED: 'true' # set to false to disable signups
docker-compose up -d
docker ps
http://127.0.0.1:8000/ |mail@example.com/iE7PtnczJcXKTT2
_________________________________________________________________________________________
Sunday, February 27, 2022
Deploy Run Web Apps in Node.js Docker Containers
in This Tutorial you will learn " How To Deploy Run Web Apps in Node.js Docker Containers
Docker is a software platform that allows you to build, test, and deploy applications quickly.
Node.js is an open-source and cross-platform JavaScript runtime environment.
_________________________________________________________________________________________
Server - Os: Ubuntu 20.04.3 LTS 64Bit | IP -192.168.1.80 |Hostname - ubuntu.example.com
_________________________________________________________________________________________
lsb_release -d ; hostname -I
apt update ; apt -y install docker.io docker-compose ca-certificates curl gnupg-agent software-properties-common -y
docker --version ; docker-compose --version
mkdir ~/nodejs_docker ; cd nodejs_docker
nano myapp.js
'use strict';
const express = require('express');
// Constants
const PORT = 3000;
const HOST = '0.0.0.0';
// App
const app = express();
app.get('/', (req, res) => {
res.send('Hello World!');
});
app.listen(PORT, HOST);
console.log(`Running at http://${HOST}:${PORT}`);
nano package.json
{
"name": "myapp",
"version": "1.0.0",
"description": "Node.js on Docker",
"author": "educationpurpose <educationpurpose@example.com>",
"main": "myapp.js",
"scripts": {
"start": "node myapp.js"
},
"dependencies": {
"express": "^4.16.1"
}
}
nano Dockerfile
FROM node:13-alpine
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 3000
CMD [ "node", "myapp.js" ]
docker build .
docker run \
--name nodejs-docker-app \
-p 80:3000 \
-d \
b4d550e97c57
docker logs nodejs-docker-app
curl localhost:80
_________________________________________________________________________________________
Deploy Elasticsearch On Docker Docker-Compose
in This Tutorial you will Learn " How To Run Deploy Elasticsearch On Docker | Docker-Compose "
Elasticsearch is a free, open-source search and analytics engine based on the Apache Lucene library.
Docker is a software platform that allows you to build, test, and deploy applications quickly.
Docker Compose is a tool that was developed to help define and share multi-container applications.
________________________________________________________________________________________
Server - Os: Rocky Linux 8.5 64Bit | IP -192.168.1.20 | Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y ; docker-compose --version ; docker --version
docker volume create elast_data
docker run -d \
-p 9200:9200 -p 9300:9300 \
-e "discovery.type=single-node" \
-v elast_data:/usr/share/elasticsearch/data \
docker.elastic.co/elasticsearch/elasticsearch:7.16.3
docker ps
docker exec -it funny_germain /bin/sh
curl -X GET "localhost:9200/"
docker stop funny_germain
docker rm funny_germain
_________________________________________________________________________________________
Docker-compose -
nano docker-compose.yaml
version: '3.3'
services:
my-elast:
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.3
ports:
- 9200:9200
- 9300:9300
volumes:
- elast_data:/usr/share/elasticsearch/data
environment:
- "discovery.type=single-node"
volumes:
elast_data:
docker-compose up -d
docker-compose ps
docker ps
docker exec -it root_my-elast_1 /bin/sh
curl -X GET "localhost:9200/"
_________________________________________________________________________________________