diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index c437bad..0000000 --- a/.dockerignore +++ /dev/null @@ -1,18 +0,0 @@ -.git -.gitignore -*.md -**/README.md -docker-compose.yml -.dockerignore -**/setup.sql -**/schema.sql -**/database.sql -**/seed.sql -**/seed.php -database/ -.env -.env.* -!.env.example -.DS_Store -.vscode/ -*.log \ No newline at end of file diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 9cd1e1e..0000000 --- a/Dockerfile +++ /dev/null @@ -1,12 +0,0 @@ -FROM php:8.2-apache - -RUN a2enmod rewrite - -RUN docker-php-ext-install mysqli pdo pdo_mysql - -RUN sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf - -COPY . /var/www/html/ - -RUN chown -R www-data:www-data /var/www/html \ - && chmod -R 755 /var/www/html \ No newline at end of file diff --git a/database/init.sql b/database/init.sql index 1ca8c02..3545db3 100644 --- a/database/init.sql +++ b/database/init.sql @@ -1,7 +1,6 @@ -- ============================================================ --- Combined DB init for Docker --- Runs automatically on first `docker compose up` --- Creates: sig_spbu, sig_mapping, sig_bansos +-- Combined DB init +-- Run once to create all databases: sig_spbu, sig_mapping, sig_bansos -- ============================================================ -- ============================================================ diff --git a/db-init.php b/db-init.php index 847dd1f..0616603 100644 --- a/db-init.php +++ b/db-init.php @@ -1,8 +1,8 @@ connect_error) { diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 7c71233..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,10 +0,0 @@ -services: - app: - build: . - expose: - - "80" - environment: - DB_HOST: swc8c4cgcg0s40g04c8k0gso - DB_USER: mysql - DB_PASS: yPsQNavb6V4loDnXIQz1uluEaQBflV7YsrZBx6HSOXgnK54L85vi1nTdAfWmswDl - restart: unless-stopped \ No newline at end of file