Attempting a simpler configuration. Podman doesn't like it. Moving to Docker for sanity check.
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
header("Content-Type: application/json");
|
||||
include('lib.php');
|
||||
include('lib/main.php');
|
||||
$ret = array( "err" => "unknown command" );
|
||||
if ( in_array("cmd", array_keys($_GET)) and $_GET["cmd"] == "get" ) {
|
||||
$ret = getEvents();
|
||||
0
web/lib.php → adm/lib.php
Normal file → Executable file
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 79 KiB |
|
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 106 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 87 KiB |
@@ -1,8 +1,8 @@
|
||||
<!DOCTYPE html>
|
||||
<?php
|
||||
|
||||
require 'lib.php';
|
||||
require 'vendor/autoload.php';
|
||||
require 'lib/main.php';
|
||||
require 'lib/vendor/autoload.php';
|
||||
use Michelf\Markdown;
|
||||
|
||||
?>
|
||||
0
app/lib.php
Normal file
@@ -5,28 +5,22 @@ services:
|
||||
ports:
|
||||
- "8080:80"
|
||||
volumes:
|
||||
- ./web/:/var/www/html:Z
|
||||
- ./vendor/:/var/www/html/vendor:Z
|
||||
- ./lib.php:/var/www/html/lib.php:Z
|
||||
- ./app/:/var/www/html:Z
|
||||
- ./lib:/var/www/html/lib:Z
|
||||
- ./dat.live:/var/www/html/dat:Z
|
||||
networks:
|
||||
- labnet
|
||||
profiles:
|
||||
- app
|
||||
cal:
|
||||
adm:
|
||||
image: php:8.2-apache
|
||||
container_name: cal
|
||||
container_name: adm
|
||||
ports:
|
||||
- "8080:80"
|
||||
- "8081:80"
|
||||
volumes:
|
||||
- ./cal/:/var/www/html:Z
|
||||
- ./vendor/:/var/www/html/vendor:Z
|
||||
- ./lib.php:/var/www/html/lib.php:Z
|
||||
- ./adm/:/var/www/html:Z
|
||||
- ./lib:/var/www/html/lib:Z
|
||||
- ./dat.live:/var/www/html/dat:Z
|
||||
networks:
|
||||
- labnet
|
||||
profiles:
|
||||
- cal
|
||||
networks:
|
||||
labnet:
|
||||
external: true
|
||||
|
||||