Skip to content

A small infrastructure for a Wordpress website by using docker containers

License

Notifications You must be signed in to change notification settings

Mushigarou/Inception

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inception

This is a containerized Wordpress site, that runs by using the technology of Docker and Docker compose tool.

Containers / Services

1 - Nginx

2 - Wordpres / PHP

3 - MariaDB

Usage

# runs containers using docker-compose
$> make

# stop, remove containers
$> make clean
# removes volumes, images, and directory volume on the host
$> make clean

Basic Docker commands

## **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)

Ressources

Docker

Others

NGINX

MariaDB

php

Wordpress

Dockerfile

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.

About

A small infrastructure for a Wordpress website by using docker containers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published