feat: Refactor MainController and related tasks to follow Porto architecture
- Moved logic from MainController to dedicated action and task classes. - Introduced GetMainPageDataAction, GetEducationsDataTask, GetRecentPostsTask, GetUpcomingEventsTask, and GetPageDataTask for better separation of concerns. - Updated routes to use the new MainController from the Main container. - Deprecated the old MainController with a clear message for future removal. - Updated caching mechanisms to use the new task classes. - Adjusted environment variable access to use config() instead of env() for better practice. - Added new MainPageResource for structured data response. - Updated .gitignore to exclude QWEN.md. - Added Jenkins service to docker-compose for CI/CD integration.
This commit is contained in:
@@ -100,10 +100,30 @@ services:
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
jenkins:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: _docker/jenkins/Dockerfile
|
||||
container_name: ntspi-jenkins
|
||||
restart: always
|
||||
ports:
|
||||
- "8080:8080" # Порт для доступа к UI Jenkins
|
||||
- "50000:50000" # Порт для агентов
|
||||
volumes:
|
||||
- jenkins_home:/var/jenkins_home # Сохранение данных Jenkins
|
||||
- /var/run/docker.sock:/var/run/docker.sock # Доступ к Docker хоста
|
||||
- ./:/var/www # Доступ к файлам проекта
|
||||
networks:
|
||||
- app-network
|
||||
group_add:
|
||||
- 999
|
||||
volumes:
|
||||
cache:
|
||||
driver: local
|
||||
|
||||
jenkins_home:
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
app-network:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user