feat(docker): refactor to use pre-built images

- Add build/load script for image management
- Use .env config for image naming and PHP version
- Switch to www-data user in Dockerfile
- Update compose.yaml to use pre-built images
- Add .dockerignore
- Simplify entrypoint script
This commit is contained in:
2025-12-10 02:57:17 +03:00
parent 8795c78230
commit 49b7d83dfa
8 changed files with 103 additions and 61 deletions

15
.env.example Normal file
View File

@@ -0,0 +1,15 @@
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=app
DB_USERNAME=laravel
DB_PASSWORD=secret
DB_ROOT_PASSWORD=secret
# Docker
PHP_VERSION=8.3-fpm
IMAGE_NAME=dev-pj1-laravel
IMAGE_TAG=${PHP_VERSION}
APP_UID=1000
APP_GID=1000