This project has been created as part of the 42 curriculum by madelvin
This guide explains how to use the project.
This project runs several services:
- NGINX: The web server that directs traffic.
- WordPress: To create your website.
- MariaDB: The database for WordPress.
- Redis: A cache to speed up the site.
- FTP: To transfer files.
- Adminer: To manage the database.
- Static Site: A simple website.
- Portainer: To see and manage the Docker containers.
Before you can start the services, you need to create a configuration file for your secrets and domain name.
- Navigate to the
srcsdirectory:cd srcs - Copy the example file
.env.exampleto a new file named.env:cp .env.example .env
- Open the
.envfile and fill in your own passwords andDOMAIN_NAME.
To launch everything, open a terminal at the project root and run:
make allIf everything is already built, you can just run:
make up- To stop the services without deleting anything:
make stop
- To stop and remove the containers and networks (your data will be safe):
make down
- To delete everything, including your data (database, WordPress files):
Or for a more thorough cleanup that also removes Docker images:
make clean
make fclean
To access the sites, use the domain name you set up in your srcs/.env file (DOMAIN_NAME).
- WordPress Site:
https://<your_domain_name> - Static Site:
https://<your_domain_name>/static/ - Adminer (DB Management):
https://<your_domain_name>/adminer/ - Portainer (Docker Management):
https://<your_domain_name>/portainer/
All passwords and credentials are in the srcs/.env file, which you created from .env.example. Keep this file secure and do not share it.
To see the status of the services:
make psThis command lists the containers and shows if they are running (Up).
To see the logs (live output) from the services:
make logsThis is useful for finding errors.