added a skeleton for faster deployment
This commit is contained in:
2
skeleton/.env
Normal file
2
skeleton/.env
Normal file
@@ -0,0 +1,2 @@
|
||||
MYSQL_ROOT_PASSWORD: random
|
||||
MYSQL_PASSWORD: random
|
||||
56
skeleton/docker-compose.yml
Normal file
56
skeleton/docker-compose.yml
Normal 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
|
||||
11
skeleton/novaconium/App/config.php
Normal file
11
skeleton/novaconium/App/config.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
$config = [
|
||||
'database' => [
|
||||
'host' => 'mariadb',
|
||||
'name' => 'novadb',
|
||||
'user' => 'novaconium',
|
||||
'pass' => '',
|
||||
'port' => 3306
|
||||
],
|
||||
'base_url' => 'http://localhost:8000'
|
||||
];
|
||||
15
skeleton/novaconium/App/controllers/404.php
Normal file
15
skeleton/novaconium/App/controllers/404.php
Normal 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>
|
||||
|
||||
2
skeleton/novaconium/App/controllers/index.php
Normal file
2
skeleton/novaconium/App/controllers/index.php
Normal file
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
view('index');
|
||||
9
skeleton/novaconium/App/routes.php
Normal file
9
skeleton/novaconium/App/routes.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$routes = [
|
||||
'/about' => [
|
||||
'get' => 'about'
|
||||
],
|
||||
'/' => [
|
||||
'get' => 'index'
|
||||
]
|
||||
];
|
||||
1
skeleton/novaconium/App/templates/override.html.twig
Normal file
1
skeleton/novaconium/App/templates/override.html.twig
Normal file
@@ -0,0 +1 @@
|
||||
{# Overrides go here #}
|
||||
7
skeleton/novaconium/App/views/index.html.twig
Normal file
7
skeleton/novaconium/App/views/index.html.twig
Normal file
@@ -0,0 +1,7 @@
|
||||
{% extends '@novaconium/master.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<h1>This is twig</h1>
|
||||
<p>Content Here</p>
|
||||
{% endblock %}
|
||||
|
||||
4
skeleton/novaconium/public/.htaccess
Normal file
4
skeleton/novaconium/public/.htaccess
Normal file
@@ -0,0 +1,4 @@
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^(.*)$ index.php?_uri=$1 [QSA,L]
|
||||
6
skeleton/novaconium/public/index.php
Normal file
6
skeleton/novaconium/public/index.php
Normal 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');
|
||||
?>
|
||||
Reference in New Issue
Block a user