Developer Documentation
- Prerequisites: A Linux environment (preferably Debian/Ubuntu) with
docker,docker-compose, andmakeinstalled. - Hosts File: You must map your domain by adding
127.0.0.1 elsikira.42.frto your/etc/hostsfile. - Configuration: Edit
srcs/.envto define your desired ports and credentials.
The project uses a standard Makefile to interface with Docker Compose:
make: Executesdocker-compose up --build.make <service_name>: Rebuilds only a specific service (e.g.,make nginx).
- Check Logs:
docker logs <container_name> - Shell Access:
docker exec -it <container_name> /bin/bash - Network Info:
docker network inspect inception
- Storage Location: By default, data is stored on the host at
$HOME/data/wordpressand$HOME/data/mariadb. - Persistence Logic: The project uses Named Volumes with a local driver configuration. This ensures that even if containers are removed, your database and website files remain persistent on the host machine as specified in the
docker-compose.yml.