Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mushigarou/inception
A small infrastructure for a Wordpress website by using docker containers
https://github.com/mushigarou/inception
Last synced: 9 days ago
JSON representation
A small infrastructure for a Wordpress website by using docker containers
- Host: GitHub
- URL: https://github.com/mushigarou/inception
- Owner: Mushigarou
- License: mit
- Created: 2024-02-17T20:14:44.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-07-15T05:44:18.000Z (4 months ago)
- Last Synced: 2024-07-16T05:30:09.381Z (4 months ago)
- Language: Dockerfile
- Homepage:
- Size: 1.74 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```bash
# 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
```bash
## **Build An Image**# builds an image named "none"
$> docker build# will be the name of the image
$> docker build -t# List images
`$> docker image ls`# List running images
$> docker ps
$> docker ps -a [including stopped images]# Start an image
$> docker run
$> docker run -it (access terminal of container after launching it)
```
# Ressources
## Docker
- [Dockerfile reference](https://docs.docker.com/engine/reference/builder/)
- [Docker CLI Interface](https://docs.docker.com/engine/reference/commandline/docker/)
- [Docker Manuals](https://docs.docker.com/manuals/)
- [Docker Cleanning Commands](https://www.warp.dev/terminus/docker-remove-stopped-containers#:~:text=Removing%20all%20stopped%20containers%20using,using%20their%20name%20or%20ID.)## Others
- [Inception Tutorial](https://tuto.grademe.fr/inception)## NGINX
- [PKCS#10 certificate](http://www.pkiglobe.org/pkcs10.html)
- [NGINX SSL Configuration Step by Step Details](https://ubiq.co/tech-blog/nginx-ssl-configuration-step-step-details/)
- [Configuring NGINX and NGINX Plus as a Web Server](https://docs.nginx.com/nginx/admin-guide/web-server/web-server/)## MariaDB
- [MariaDB Training & Tutorials](https://mariadb.com/kb/en/training-tutorials/)## php
- [How To Install PHP 7.4 on Debian 10 / Debian 9](https://computingforgeeks.com/how-to-install-latest-php-on-debian/)## Wordpress
- [How to Install WordPress on Debian 10/11 (Step by Step)](https://cloudinfrastructureservices.co.uk/install-wordpress-on-debian-10-11/)
- [Install and configure WordPress](https://ubuntu.com/tutorials/install-and-configure-wordpress#1-overview)
- [Install WordPress Using WP-CLI on Debian 10](https://www.linode.com/docs/guides/how-to-install-wordpress-using-wp-cli-on-debian-10/)
- [Server Environment For Wordpress (Web Server && PHP && Database](https://make.wordpress.org/hosting/handbook/server-environment/#php-extensions)
- [How To Install WordPress With Docker Compose](https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-docker-compose)# 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. |