version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
depends_on:
- db
image: wordpress:latest
ports:
- "8000:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
volumes:
db_data: {}
Sunday, June 28, 2020
Docker Compose Cheat Sheet || Docker Captain || Astute JS
Saturday, June 27, 2020
Docker Volume commands || Cheatsheet || Astute JS
Docker Popular Image Commands || Cheatsheet || Astute Js
Sunday, June 21, 2020
Red Hat Certified Systems Administrator exam | Question and Answers | AstuteJs
You need to set the execute bit on the finance directory and any subdirectories it might contain, but not on the files within them. This change must apply to all users. What methods might you use?
chmod a+X -R finance
Which directory contains the info files from which the info program reads?
/usr/share/info
What command would you use to install the star utility?
yum install star
How would you dump the contents of the /var/log/messages file into standard output, grep for all lines that contain "Memory" and then redirect the grep'ed result to /home/user/log.txt?
cat /var/log/messages | grep -i memory > /home/user/log.txt
You need to search the man pages that relate to the posix service. What is one command that you could do to do this?
apropos postfix
How would you append the text "service=on" to the /etc/motd file?
echo "service=on" >> /etc/motd
Red Hat Certified Systems Administrator | Operate Running Systems Question and Answers | Cheatsheet
What is the percentage load average for the following processor count and given load for the 5 minute load average?
[root@localhost]# uptime
09:55:50 up 16:35, 3 users, load average: 4.05, 3.03, 3.75
[root@localhost ~]# grep "model name" /proc/cpuinfo | wc -l
5
Sunday, June 14, 2020
Revoke/Revert Git Commits from Remote or Local Repository || GIT Users must know
AWS Interview Questions and Answers
Sure! Here are the answers to the **AWS Services and Cloud Infrastructure** questions: ### **AWS Services and Cloud Infrastructure (50 Ques...
-
Ext.defer or Ext.function.defer is a function similar to javascript setTimeout function. Ext. defer (function() { alert('H...
-
Javascript prototype is quite fuzzy word for javascript developers in the beginning. Prototype is the property which is available for all...
-
In Javascript world the things are always confused. The most confused and made complicated feature is closure. But the truth is Javascrip...