diff --git a/docker-compose.yml b/docker-compose.yml
index 76310d24ab2a55db1fea7518da92606e4c3ce733..0e69ee996382aed2cbf3bab8c158248ff644d440 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,6 +1,8 @@
 version: "3.3"
 services:
   web:
+    env_file:
+      - .env
     container_name: tubes-1-letterpaw
     build: .
     image: tubes-1:latest
@@ -18,6 +20,8 @@ services:
     volumes:
       - .:/var/www/html/
   db:
+    env_file:
+      - .env
     container_name: tubes-1-database
     image: mysql:latest
     restart: unless-stopped
diff --git a/index.php b/index.php
new file mode 100644
index 0000000000000000000000000000000000000000..431a44f39118628b7aaa7737fb394b2fa31c2a68
--- /dev/null
+++ b/index.php
@@ -0,0 +1,14 @@
+<?php
+
+use app\base\BaseController;
+
+spl_autoload_register(function ($className) {
+  if (!str_starts_with($className, "app\\")) {
+    return;
+  }
+
+  $className = substr($className, 4);
+  $className = str_replace("\\", "/", $className);
+  $class = __DIR__ . "/src/" . "{$className}.php";
+  include_once($class);
+});