This is a containerized Wordpress site, that runs by using the technology of Docker and Docker compose tool.
1 - Nginx
2 - Wordpres / PHP
3 - MariaDB
# runs containers using docker-compose
$> make
# stop, remove containers
$> make clean
# removes volumes, images, and directory volume on the host
$> make clean
## **Build An Image**
# builds an image named "none"
$> docker build <Dockerfile_Path_Directory>
# <image_name> will be the name of the image
$> docker build -t <image_name> <Dockerfile_Path_Directory>
# List images
`$> docker image ls`
# List running images
$> docker ps
$> docker ps -a [including stopped images]
# Start an image
$> docker run <image_name>
$> docker run -it <image_name> (access terminal of container after launching it)
- PKCS#10 certificate
- NGINX SSL Configuration Step by Step Details
- Configuring NGINX and NGINX Plus as a Web Server
- How to Install WordPress on Debian 10/11 (Step by Step)
- Install and configure WordPress
- Install WordPress Using WP-CLI on Debian 10
- Server Environment For Wordpress (Web Server && PHP && Database
- How To Install WordPress With Docker Compose
Instruction | Description |
---|---|
ADD | Add local or remote files and directories. |
ARG | Use build-time variables. |
CMD | Specify default commands. |
COPY | Copy files and directories. |
ENTRYPOINT | Specify default executable. |
ENV | Set environment variables. |
EXPOSE | Describe which ports your application is listening on. |
FROM | Create a new build stage from a base image. |
HEALTHCHECK | Check a container's health on startup. |
LABEL | Add metadata to an image. |
MAINTAINER | Specify the author of an image. |
ONBUILD | Specify instructions for when the image is used in a build. |
RUN | Execute build commands. |
SHELL | Set the default shell of an image. |
STOPSIGNAL | Specify the system call signal for exiting a container. |
USER | Set user and group ID. |
VOLUME | Create volume mounts. |
WORKDIR | Change working directory. |