First changes for Docker

This commit is contained in:
Fabio Herzig
2026-07-25 21:51:43 +02:00
parent 6cb5386205
commit 99a5863f56
10 changed files with 122 additions and 321 deletions
+2 -2
View File
@@ -2,6 +2,6 @@
DB_USER=DB_GUESTUSER_USERNAME
DB_PASSWORD=DB_GUESTUSER_PASSWORD
DB_NAME=DATABASE_NAME # Same as .env.db
DB_HOST=DB_HOST # Same as .env.db, An IP without Port, often 127.0.0.1 or localhost
DB_NAME=DATABASE_NAME # Same as .env.db-wkvs-user
DB_HOST=mariadb # Same as .env.db-wkvs-user, An IP without Port, often 127.0.0.1 or localhost
DB_PORT=3306 # default Port is 3306
+7
View File
@@ -0,0 +1,7 @@
# This Account must have at least have permissions SELECT, INSERT, UPDATE, DELETE !
DB_USER=DB_USER_USERNAME
DB_PASSWORD=DB_USER_PASSWORD
DB_NAME=DATABASE_NAME
DB_HOST=mariadb # mariadb for Docker Use, otherwsie An IP with Port 127.0.0.1 or localhost
DB_PORT=3306 # default Port is 3306
+3 -7
View File
@@ -1,7 +1,3 @@
# This Account must have at least have permissions SELECT, INSERT, UPDATE, DELETE !
DB_USER=DB_USER_USERNAME
DB_PASSWORD=DB_USER_PASSWORD
DB_NAME=DATABASE_NAME
DB_HOST=DB_HOST # An IP with Port 127.0.0.1 or localhost
DB_PORT=3306 # default Port is 3306
MYSQL_ROOT_PASSWORD=YOUR_PASSWORD_FOR_ROOT
MYSQL_DATABASE=YOUR_DATABASE_NAME
MYSQL_HOST=localhost
+9
View File
@@ -0,0 +1,9 @@
FROM php:8.3-apache
# Enable the rewrite module
RUN a2enmod rewrite
RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
# The php:apache image handles the "start" command automatically,
# so we don't need to add anything else here.
+1
View File
@@ -0,0 +1 @@
include_path=".:/var/www/html:/usr/local/lib/php"
+25
View File
@@ -0,0 +1,25 @@
events {}
http {
server {
listen 80;
location /ws/ {
proxy_pass http://127.0.0.1:8082;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
# Prevent WebSocket timeout
proxy_read_timeout 36000s; # 1 hour
proxy_send_timeout 36000s; # 1 hour
proxy_connect_timeout 75s; # optional
}
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}
}
}