From d1ef15fa39935bfa0420c5ac2b8c269e294c9a6d Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Sat, 21 Mar 2026 20:50:43 +0100 Subject: Initial project scaffold Set up MVC architecture with front controller, router, autoloader, database singleton, and Docker Compose stack (Nginx + PHP-FPM + MariaDB). Includes DB schema, responsive layout, dev tooling (php-cs-fixer, parallel-lint), and documentation. --- docker-compose.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 docker-compose.yml (limited to 'docker-compose.yml') diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..a173959 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,31 @@ +services: + nginx: + build: ./docker/nginx + ports: + - "8080:80" + volumes: + - ./src:/var/www/html + depends_on: + - php + + php: + build: ./docker/php + volumes: + - ./src:/var/www/html + env_file: + - .env + depends_on: + - mariadb + + mariadb: + image: mariadb:10.11.11 + env_file: + - .env + volumes: + - db_data:/var/lib/mysql + - ./docker/mariadb/init.sql:/docker-entrypoint-initdb.d/init.sql + ports: + - "3306:3306" + +volumes: + db_data: -- cgit v1.2.3