Refactor code structure for improved readability and maintainability

This commit is contained in:
Giuliano Paschoalino 2026-01-16 16:09:39 -03:00
parent 17bbf8d0e6
commit 79177ad738
2 changed files with 10057 additions and 47 deletions

View File

@ -1,50 +1,54 @@
# For more information: https://laravel.com/docs/sail
version: '3'
services:
laravel.test:
php:
image: smartenergyview/smartenergyview-backend:latest
build:
context: ./vendor/laravel/sail/runtimes/8.1
dockerfile: Dockerfile
args:
WWWGROUP: '${WWWGROUP}'
image: sail-8.1/app
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:
- '${APP_PORT:-80}:80'
- '${HMR_PORT:-8080}:8080'
environment:
WWWUSER: '${WWWUSER}'
LARAVEL_SAIL: 1
XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
volumes:
- '.:/var/www/html'
context: ..
dockerfile: docker/php/Dockerfile
container_name: smartEnergyView-php
restart: unless-stopped
env_file:
- .env
expose:
- "9000"
networks:
- sail
- app_net
nginx:
image: nginx:1.26-alpine
container_name: smartEnergyView-nginx
restart: unless-stopped
ports:
- "8000:80"
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- pgsql
pgsql:
image: 'postgres:14'
ports:
- '${FORWARD_DB_PORT:-5432}:5432'
environment:
PGPASSWORD: '${DB_PASSWORD:-secret}'
POSTGRES_DB: '${DB_DATABASE}'
POSTGRES_USER: '${DB_USERNAME}'
POSTGRES_PASSWORD: '${DB_PASSWORD:-secret}'
volumes:
- 'sail-pgsql:/var/lib/postgresql/data'
- './vendor/laravel/sail/database/pgsql/create-testing-database.sql:/docker-entrypoint-initdb.d/10-create-testing-database.sql'
- php
networks:
- sail
healthcheck:
test: ["CMD", "pg_isready", "-q", "-d", "${DB_DATABASE}", "-U", "${DB_USERNAME}"]
retries: 3
timeout: 5s
- app_net
postgres:
image: postgres:16-alpine
container_name: smartEnergyView-postgres
restart: unless-stopped
environment:
POSTGRES_DB: smartenergiaprod
POSTGRES_USER: postgres
POSTGRES_PASSWORD: VfHml#Z78!%kvvNM
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- app_net
redis:
image: redis:7-alpine
container_name: smartEnergyView-redis
restart: unless-stopped
networks:
- app_net
networks:
sail:
app_net:
driver: bridge
volumes:
sail-pgsql:
driver: local
pgdata:

10006
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff