feat: add Azure AKS deployment infrastructure with Terraform
Build and Deploy to Synology NAS / test (push) Failing after 15m0s
Build and Deploy to Synology NAS / build (push) Has been cancelled
Build and Deploy to Synology NAS / deploy (push) Has been cancelled
Build and Deploy to Synology NAS / notify (push) Has been cancelled

- Add Terraform configuration for AKS cluster deployment
- Add Kubernetes manifests for Laravel app (deployment, services, secrets)
- Add PostgreSQL on Kubernetes with multi-schema support
- Add Nginx Ingress Controller configuration
- Add GitHub Actions workflow for Azure deployment
- Add HTTP Basic Authentication for production
- Add database restore functionality via Kubernetes jobs
- Update Dockerfile and nginx config for production
- Update database.php for multi-schema connections
- Add deployment documentation and quickstart guides

Deployed version: 1.0.7 at http://72.144.113.194/

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-03 09:43:08 +01:00
co-authored by Claude Opus 4.5
parent 6cd051d571
commit fddc78618e
28 changed files with 4492 additions and 20 deletions
+6 -4
View File
@@ -30,13 +30,14 @@
# Create user, dirs, and sockets
RUN mkdir -p /run/nginx /run/php /var/www/html /var/log/supervisor
# Configure PHP-FPM socket
# Configure PHP-FPM socket and environment variables
RUN sed -i 's|^listen = 127\\.0\\.0\\.1:9000|listen = /run/php/php-fpm.sock|' /etc/php82/php-fpm.d/www.conf \
&& sed -i 's|^;listen.owner = nobody|listen.owner = nginx|' /etc/php82/php-fpm.d/www.conf \
&& sed -i 's|^;listen.group = nobody|listen.group = nginx|' /etc/php82/php-fpm.d/www.conf \
&& sed -i 's|^;listen.mode = 0660|listen.mode = 0660|' /etc/php82/php-fpm.d/www.conf \
&& sed -i 's|^user = nobody|user = nginx|' /etc/php82/php-fpm.d/www.conf \
&& sed -i 's|^group = nobody|group = nginx|' /etc/php82/php-fpm.d/www.conf
&& sed -i 's|^group = nobody|group = nginx|' /etc/php82/php-fpm.d/www.conf \
&& sed -i 's|^;clear_env = no|clear_env = no|' /etc/php82/php-fpm.d/www.conf
WORKDIR /var/www/html
@@ -46,6 +47,7 @@
COPY deploy/nginx/nginx.conf /etc/nginx/nginx.conf
COPY deploy/supervisord.conf /etc/supervisor/supervisord.conf
COPY deploy/nginx/nginx.default.conf.template /etc/nginx/templates/default.conf.template
COPY deploy/nginx/.htpasswd /etc/nginx/.htpasswd
COPY deploy/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
@@ -64,8 +66,8 @@ RUN mkdir -p /var/log/nginx \
# Build frontend assets
RUN npm ci && npm run build
# Optimize Laravel configuration
RUN php artisan config:cache && php artisan route:cache && php artisan view:cache && php artisan event:cache
# Optimize Laravel configuration (config:cache removed - will be done at runtime with correct env vars)
RUN php artisan route:cache && php artisan view:cache && php artisan event:cache
# Entferne .env Datei, um sensible Daten nicht im finalen Image zu behalten
RUN rm -f /var/www/html/.env