chore: update water data sets and migrate docker configuration to directory-based structure
continuous-integration/drone/push Build encountered an error

This commit is contained in:
David Fencl
2026-06-13 22:51:47 +02:00
parent a1a1685ae3
commit 5894c51256
67 changed files with 24781 additions and 4437 deletions
+27
View File
@@ -0,0 +1,27 @@
# Stage 1: Build the React Application
FROM node:20 AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
# Stage 2: Serve the application with Apache
FROM --platform=linux/amd64 php:8.4-apache
WORKDIR /var/www/html
# Enable necessary Apache modules
RUN a2enmod rewrite headers
COPY Docker/vhost.conf /etc/apache2/sites-available/000-default.conf
# Copy the built application from the build stage
COPY --from=build /app/dist /app/dist
# Ensure correct permissions
RUN chown -R www-data:www-data /app
# Keep original PHP extensions just in case
RUN docker-php-ext-install mysqli pdo pdo_mysql
EXPOSE 80
+30
View File
@@ -0,0 +1,30 @@
version: '3.8'
services:
db:
image: timescale/timescaledb:latest-pg16
container_name: hladinator-db
restart: always
environment:
POSTGRES_DB: hladinator
POSTGRES_USER: hladinator_user
POSTGRES_PASSWORD: hladinator_db_password_change_me
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
web:
build:
context: ..
dockerfile: Docker/Dockerfile
container_name: hladinator-web
restart: always
ports:
- "80:80"
depends_on:
- db
volumes:
pgdata:
driver: local
+26
View File
@@ -0,0 +1,26 @@
# File: Docker/vhost.conf
LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so
<VirtualHost *:80>
ServerName localhost
DocumentRoot /app/dist
<Directory "/app/dist">
Options Indexes FollowSymLinks Includes execCGI
AllowOverride All
Require all granted
allow from all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>