undockerize project

This commit is contained in:
Araya's Project
2026-06-11 17:33:47 +07:00
parent 2c2636cf45
commit 5854103517
5 changed files with 5 additions and 46 deletions
-18
View File
@@ -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
-12
View File
@@ -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
+2 -3
View File
@@ -1,7 +1,6 @@
-- ============================================================ -- ============================================================
-- Combined DB init for Docker -- Combined DB init
-- Runs automatically on first `docker compose up` -- Run once to create all databases: sig_spbu, sig_mapping, sig_bansos
-- Creates: sig_spbu, sig_mapping, sig_bansos
-- ============================================================ -- ============================================================
-- ============================================================ -- ============================================================
+3 -3
View File
@@ -1,8 +1,8 @@
<?php <?php
// HAPUS FILE INI SETELAH DIPAKAI! // HAPUS FILE INI SETELAH DIPAKAI!
$host = getenv('DB_HOST') ?: 'mysql://mysql:yPsQNavb6V4IoDnXIQz1uluEaQBflV7YsrZBx6HSOXgnK54L85vi1nTdAfWmswDl@swc8c4cgcg0s40g04c8k0gso:3306/default'; $host = getenv('DB_HOST') ?: 'localhost';
$user = getenv('DB_USER') ?: 'mysql-database-swc8c4cgcg0s40g04c8k0gso'; $user = getenv('DB_USER') ?: 'root';
$pass = getenv('DB_PASS') ?: 'Cb6aGo2ccTVo10wdtU3QM0Ch2yEE8Z1PR9OIXUvmKfAQrCmntWabaQa3JFqi0Vz0'; $pass = getenv('DB_PASS') ?: '';
$conn = new mysqli($host, $user, $pass); $conn = new mysqli($host, $user, $pass);
if ($conn->connect_error) { if ($conn->connect_error) {
-10
View File
@@ -1,10 +0,0 @@
services:
app:
build: .
expose:
- "80"
environment:
DB_HOST: swc8c4cgcg0s40g04c8k0gso
DB_USER: mysql
DB_PASS: yPsQNavb6V4loDnXIQz1uluEaQBflV7YsrZBx6HSOXgnK54L85vi1nTdAfWmswDl
restart: unless-stopped