add styling

This commit is contained in:
Purple
2026-01-16 20:38:51 +00:00
parent 2385218831
commit c9a74633e5
3 changed files with 12 additions and 44 deletions

View File

@@ -1,37 +0,0 @@
FROM php:8.3-apache
# Install PHP extensions for MySQL/MariaDB
RUN docker-php-ext-install pdo pdo_mysql mysqli
# Enable Apache modules
RUN a2enmod rewrite headers
# Configure Apache
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
# Set working directory
WORKDIR /var/www/html
# Configure PHP for production
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
# Custom PHP settings
RUN echo "expose_php = Off" >> "$PHP_INI_DIR/conf.d/custom.ini" && \
echo "display_errors = Off" >> "$PHP_INI_DIR/conf.d/custom.ini" && \
echo "log_errors = On" >> "$PHP_INI_DIR/conf.d/custom.ini" && \
echo "error_log = /var/log/php_errors.log" >> "$PHP_INI_DIR/conf.d/custom.ini"
# Copy application files
COPY webapp/ /var/www/html/
# Copy database scripts for potential import use
COPY database/ /opt/geofeed/database/
# Set permissions
RUN chown -R www-data:www-data /var/www/html
# Expose port 80
EXPOSE 80
# Start Apache
CMD ["apache2-foreground"]

View File

@@ -18,13 +18,15 @@ A complete solution for managing RFC 8805 compliant IP geolocation feeds (geofee
geofeed-manager/
├── database/
│ ├── schema.sql # Database schema
│ └── import_csv.php # CSV import utility
│ └── import_csv.php # CSV import utility (CLI)
├── webapp/
│ ├── config.php # Configuration & helpers
│ ├── api.php # RESTful API endpoints
│ └── index.php # Main web interface
── n8n/
└── geofeed-export-workflow.json # n8n workflow
── n8n/
└── geofeed-export-workflow.json # n8n workflow
├── docker-compose.yml # Docker Compose configuration
└── .env.example # Environment variables template
```
## Installation (Docker)

View File

@@ -25,20 +25,23 @@ services:
retries: 5
start_period: 30s
# PHP Application
# PHP Application (using pre-built image with extensions)
webapp:
build:
context: .
dockerfile: Dockerfile
image: webdevops/php-apache:8.3
container_name: geofeed-webapp
restart: unless-stopped
environment:
WEB_DOCUMENT_ROOT: /app
PHP_DISPLAY_ERRORS: 0
PHP_MEMORY_LIMIT: 256M
DB_HOST: mariadb
DB_NAME: ${DB_NAME:-geofeed_manager}
DB_USER: ${DB_USER:-geofeed}
DB_PASS: ${DB_PASSWORD:-geofeed_secret}
ports:
- "${WEB_PORT:-8080}:80"
volumes:
- ./webapp:/app:ro
depends_on:
mariadb:
condition: service_healthy