WIP make it run in docker
This commit is contained in:
@@ -1,12 +1,23 @@
|
||||
<?php
|
||||
/// @file some variable definitions
|
||||
|
||||
$config['basePath'] = '/users/cwsvjudo/www';
|
||||
$config['baseUrl'] = 'http://cwsvjudo.bplaced.net';
|
||||
$config['ressourceUrl'] = 'http://cwsvjudo.bplaced.net/ressourcen';
|
||||
# define variable holding the config
|
||||
if (!isset($config)) {
|
||||
$config = [];
|
||||
}
|
||||
|
||||
setlocale(LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge');
|
||||
set_include_path(implode(
|
||||
PATH_SEPARATOR,
|
||||
[get_include_path(), $config['basePath'], $config['basePath'] . '/ressourcen', $config['basePath'] . '/ressourcen/phpLib', './lib/']
|
||||
));
|
||||
$config["home"] = "/home/cwsvjudo";
|
||||
$config["basePath"] = "/home/cwsvjudo/www";
|
||||
$config["baseUrl"] = "http://cwsvjudo.bplaced.net";
|
||||
$config["ressourceUrl"] = "http://cwsvjudo.bplaced.net/ressourcen";
|
||||
|
||||
setlocale(LC_ALL, "de_DE@euro", "de_DE", "de", "ge");
|
||||
set_include_path(
|
||||
implode(PATH_SEPARATOR, [
|
||||
get_include_path(),
|
||||
$config["basePath"],
|
||||
$config["basePath"] . "/ressourcen",
|
||||
$config["basePath"] . "/ressourcen/phpLib",
|
||||
"./lib/",
|
||||
])
|
||||
);
|
||||
|
||||
@@ -1,30 +1,31 @@
|
||||
<?php
|
||||
setlocale(LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge');
|
||||
set_include_path(get_include_path() . PATH_SEPARATOR . './lib/');
|
||||
setlocale(LC_ALL, "de_DE@euro", "de_DE", "de", "ge");
|
||||
set_include_path(get_include_path() . PATH_SEPARATOR . "./lib/");
|
||||
|
||||
require_once 'participoLib/participo.php';
|
||||
require_once 'participoLib/planer.php';
|
||||
require_once "participoLib/participo.php";
|
||||
require_once "participoLib/planer.php";
|
||||
|
||||
require_once 'config/participo.php';
|
||||
require_once "config/participo.php";
|
||||
|
||||
require_once './local/dbConf.php';
|
||||
require_once './local/cwsvJudo.php';
|
||||
require_once "./local/dbConf.php";
|
||||
require_once "./local/cwsvJudo.php";
|
||||
|
||||
require_once './lib/db.php';
|
||||
require_once './lib/api.php';
|
||||
require_once "./lib/db.php";
|
||||
require_once "./lib/api.php";
|
||||
|
||||
require_once $config['basePath'] . '/config/cwsvJudo.config.php';
|
||||
require_once $config["home"] . "/.local/cwsvJudo.config.php";
|
||||
|
||||
dbConnector::connect(
|
||||
$cwsvJudoConfig['db']['host'],
|
||||
$cwsvJudoConfig['db']['name'],
|
||||
$cwsvJudoConfig['db']['user'],
|
||||
$cwsvJudoConfig['db']['password']
|
||||
$cwsvJudoConfig["db"]["host"],
|
||||
$cwsvJudoConfig["db"]["name"],
|
||||
$cwsvJudoConfig["db"]["user"],
|
||||
$cwsvJudoConfig["db"]["password"]
|
||||
);
|
||||
|
||||
participo::authentificate();
|
||||
|
||||
$meta = [
|
||||
'title' => 'Event Planer',
|
||||
'description' => 'Planung von (Nicht-)Teilnahmen an Wettkämpfen und anderen Veranstaltungen'
|
||||
"title" => "Event Planer",
|
||||
"description" =>
|
||||
"Planung von (Nicht-)Teilnahmen an Wettkämpfen und anderen Veranstaltungen",
|
||||
];
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -16,7 +16,7 @@ services:
|
||||
# nginx config file
|
||||
- ./nginx.conf:/etc/nginx/conf.d/nginx.conf
|
||||
# the app itself
|
||||
- ./cwsvjudo@bplaced/www/participo:/home/cwsvjudo/httpdocs/participo
|
||||
- ./cwsvjudo@bplaced/www/participo:/home/cwsvjudo/httpdocs/participo:rw
|
||||
# the apps config files
|
||||
- ./config-heliohost/cwsvJudo.config.php:/home/cwsvjudo/.local/cwsvJudo.config.php
|
||||
# ressourcen
|
||||
@@ -45,8 +45,8 @@ services:
|
||||
# @todo Should credentials be placed here? Even if it is just a test environment
|
||||
environment:
|
||||
# MYSQL_TCP_PORT: 1433
|
||||
MYSQL_USER: 'cwsvjudo'
|
||||
MYSQL_DATABASE: 'cwsvjudo'
|
||||
MYSQL_USER: "cwsvjudo"
|
||||
MYSQL_DATABASE: "cwsvjudo"
|
||||
MYSQL_ROOT_PASSWORD_FILE: /run/secrets/db_root_password
|
||||
MYSQL_PASSWORD_FILE: /run/secrets/db_password
|
||||
volumes:
|
||||
@@ -64,6 +64,7 @@ services:
|
||||
restart: always
|
||||
depends_on:
|
||||
- database
|
||||
- php
|
||||
ports:
|
||||
- 8080:80
|
||||
environment:
|
||||
|
||||
Reference in New Issue
Block a user