Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 1.15 KB

File metadata and controls

20 lines (16 loc) · 1.15 KB

Developer Documentation

Environment Setup

  1. Prerequisites: A Linux environment (preferably Debian/Ubuntu) with docker, docker-compose, and make installed.
  2. Hosts File: You must map your domain by adding 127.0.0.1 elsikira.42.fr to your /etc/hosts file.
  3. Configuration: Edit srcs/.env to define your desired ports and credentials.

Build and Launch

The project uses a standard Makefile to interface with Docker Compose:

  • make: Executes docker-compose up --build.
  • make <service_name>: Rebuilds only a specific service (e.g., make nginx).

Management Commands

  • Check Logs: docker logs <container_name>
  • Shell Access: docker exec -it <container_name> /bin/bash
  • Network Info: docker network inspect inception

Data Persistence

  • Storage Location: By default, data is stored on the host at $HOME/data/wordpress and $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.