added a skeleton for faster deployment

This commit is contained in:
2025-06-08 18:19:12 -07:00
parent bedf615ad3
commit 7b02960b46
15 changed files with 90 additions and 90 deletions

2
skeleton/.env Normal file
View File

@@ -0,0 +1,2 @@
MYSQL_ROOT_PASSWORD: random
MYSQL_PASSWORD: random

View File

@@ -0,0 +1,56 @@
# Sample Docker Compose
services:
corxn:
image: 4lights/corxn:6.0.0
ports:
- "8000:80"
volumes:
- ./novaconium:/data
- ./data/logs:/var/log/apache2 # Optional Logs
restart: unless-stopped
networks:
- internal
- proxy
redis:
image: redis:latest
networks:
- internal
restart: unless-stopped
mariadb:
image: mariadb:latest
container_name: mariadb
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: novadb
MYSQL_USER: novaconium
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- ./data/db:/var/lib/mysql
networks:
- internal
restart: unless-stopped
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
restart: unless-stopped
ports:
- "8001:80"
networks:
- internal
environment:
- PMA_ARBITRARY=-1
- PMA_HOST=mariadb
- PMA_USER=root
- PMA_PASSWORD=${MYSQL_ROOT_PASSWORD}
- UPLOAD_LIMIT=200M
volumes:
- "/etc/timezone:/etc/timezone:ro"
- "/etc/localtime:/etc/localtime:ro"
networks:
proxy:
external: true
internal:
driver: bridge

View File

@@ -0,0 +1,11 @@
<?php
$config = [
'database' => [
'host' => 'mariadb',
'name' => 'novadb',
'user' => 'novaconium',
'pass' => '',
'port' => 3306
],
'base_url' => 'http://localhost:8000'
];

View File

@@ -0,0 +1,15 @@
<?php
// Define our status code and message
$status_code = 404;
$status_message = 'The requested resource could not be found.';
// Set the HTTP response code and message
http_response_code($status_code);
header("Content-Type: text/html");
?>
<h1>Error 404 Resource Not found</h1>
<p><?php echo $status_message; ?></p>
<p style="font-size:10px; margin-top:60px">Novaconium Default 404 page.</p>

View File

@@ -0,0 +1,2 @@
<?php
view('index');

View File

@@ -0,0 +1,9 @@
<?php
$routes = [
'/about' => [
'get' => 'about'
],
'/' => [
'get' => 'index'
]
];

View File

@@ -0,0 +1 @@
{# Overrides go here #}

View File

@@ -0,0 +1,7 @@
{% extends '@novaconium/master.html.twig' %}
{% block content %}
<h1>This is twig</h1>
<p>Content Here</p>
{% endblock %}

View File

@@ -0,0 +1,4 @@
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?_uri=$1 [QSA,L]

View File

@@ -0,0 +1,6 @@
<?php
// error_reporting(E_ALL);
// ini_set('display_errors', 1);
define('BASEPATH', dirname(__DIR__, 1));
require_once(BASEPATH . '/vendor/4lt/novaconium/src/novaconium.php');
?>