chore: Update Docker configuration and app config

- Modified docker-compose.yml (port/environment changes)
- Updated config/app.php
- Added apache-vhost-windows.conf for Windows setup
This commit is contained in:
kirill.khorkov
2026-01-06 17:07:14 +03:00
parent a4092adf2e
commit 7f876b5c4a
3 changed files with 57 additions and 1 deletions

50
apache-vhost-windows.conf Normal file
View File

@@ -0,0 +1,50 @@
<VirtualHost *:80>
ServerAdmin admin@aeterna.local
# ВАЖНО: Замените этот путь на полный путь к вашему проекту
# Пример: C:/Users/YourUsername/Desktop/cite_practica1
DocumentRoot "C:/path/to/cite_practica1/public"
ServerName aeterna.local
ServerAlias www.aeterna.local
# Настройка директории public
<Directory "C:/path/to/cite_practica1/public">
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
# Включение .htaccess для роутинга
DirectoryIndex index.php
</Directory>
# Алиас для загруженных файлов
Alias /uploads "C:/path/to/cite_practica1/storage/uploads"
<Directory "C:/path/to/cite_practica1/storage/uploads">
Options -Indexes
AllowOverride None
Require all granted
</Directory>
# Логи (путь к логам Apache на Windows обычно logs/ в папке Apache)
ErrorLog logs/aeterna-error.log
CustomLog logs/aeterna-access.log combined
# Кодировка по умолчанию
AddDefaultCharset UTF-8
# MIME типы
AddType text/css .css
AddType text/less .less
AddType text/javascript .js
AddType image/svg+xml .svg
AddType image/webp .webp
AddType image/jpeg .jpg .jpeg
AddType image/png .png
# Настройки PHP (если используется mod_php)
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
</VirtualHost>

View File

@@ -3,7 +3,13 @@
return [
'name' => 'AETERNA',
'debug' => getenv('APP_DEBUG') ?: true,
// URL приложения
// Для Docker: http://localhost:8080
// Для Windows с Apache: http://aeterna.local или http://localhost
// Можно переопределить через переменную окружения APP_URL в Apache
'url' => getenv('APP_URL') ?: 'http://localhost:8080',
'base_path' => '',
'timezone' => 'Europe/Moscow',
'locale' => 'ru_RU',

View File

@@ -4,7 +4,7 @@ services:
context: .
dockerfile: Dockerfile
ports:
- "8080:80"
- "127.0.0.1:8881:80"
volumes:
- .:/var/www/html
- ./docker/apache/vhosts.conf:/etc/apache2/sites-available/000-default.conf