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