https://github.com/akamlah/42-inception
Writing small docker images from scratch as an exercise, and set up a functioning containerised LEMP stack
https://github.com/akamlah/42-inception
docker docker-compose mariadb-server nginx-configuration php-fpm wordpress
Last synced: 4 months ago
JSON representation
Writing small docker images from scratch as an exercise, and set up a functioning containerised LEMP stack
- Host: GitHub
- URL: https://github.com/akamlah/42-inception
- Owner: akamlah
- Created: 2022-07-29T14:53:07.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-24T10:54:12.000Z (over 3 years ago)
- Last Synced: 2025-09-02T13:06:55.058Z (10 months ago)
- Topics: docker, docker-compose, mariadb-server, nginx-configuration, php-fpm, wordpress
- Language: Dockerfile
- Homepage:
- Size: 37.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 42-inception
Writing small docker images from scratch as an exercise, and set up a functioning containerised LEMP stack
## Usage
At the root of the repository:
```
$ make
```
You will build and run this way 3 docker containers:
* A container with nginx as server
* A container with php-fpm and Wordpress
* A contianer with a database (mariadb) linked to wordpress
The data generated is persistent thanks to the two volumes created:
* A volume containing the Wordpress files
* A volume containing the related database
You can bind these to two local folders of yours by changing this variables in the makefile:
```VOLUME_DIR = ```
The makefile will create two folders at this location:
* ```wp-content_volume``` containing your wordpress data
* ```wp-database_volume``` containing the database for you page once you've set one up.
To do so, connect to //https:localhost:443// and follow the instructions of the inistallation wizard.
This is meant for local development or as an exercise, so the ssl certificates are self-signed: you might have to accept a waring abput the security of the page once you connect to it, depending on your browser. In Chrome for example, type "thisisunsafe" and hit enter - you will be able to see the wordpresss installer.