Service | Container Name | Ports | Network | Credentials |
MariaDB 10.9.3 | mariadb-10-9 | 13306:3306 | dev_network |
RootUsername: root RootPassword: root-password DefaultDatabase: dev-database DefaultUser: dev-user DefaultPassword: dev-password |
MariaDB 10.6.16 | mariadb-10-6 | 13307:3306 | dev_network |
RootUsername: root RootPassword: root-password DefaultDatabase: dev-database DefaultUser: dev-user DefaultPassword: dev-password |
Redis 7.2.4 | redis-7-2 | 16379:6379 | dev_network | |
MongoDB 7.0.12 | mongo-7-0 | 27017:27017 | dev_network |
RootUsername: root RootPassword: root-dev-password |
PHP-FPM 8.2.21 for CodeSniffer | dev_network | |||
S3Mock 3.11.0 | s3mock-3 | 9092:9090 | dev_network | |
min.io RELEASE.2024-06-29T01-20-47Z | minio |
9004:9000 9005:9001 (MinIO Console) |
dev_network |
RootUsername: minio RootPassword: dev-password |
git clone git@github.com:alaugks/docker-local-env.git
cd docker-local-env
docker compose up -d
.env.local
DB_DRIVER=mysql
DB_USER=dev-user
DB_PASSWORD=dev-password
DB_HOST=mariadb-10-9
DB_PORT=3306
DB_NAME=your_database
DB_SERVER_VERSION=10.9.3-MariaDB
services.yaml
parameters:
database_url: '%env(DB_DRIVER)%://%env(DB_USER)%:%env(DB_PASSWORD)%@%env(DB_HOST)%:%env(DB_PORT)%/%env(DB_NAME)%?serverVersion=%env(DB_SERVER_VERSION)%'
application.properties
spring.datasource.url=jdbc:mariadb://mariadb-10-9:3306/your_database
spring.datasource.username=dev-user
spring.datasource.password=dev-password
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
Settings CLI Interpreters
Settings PHP CodeSniffer
Path Code Sniffer
/var/www/html/vendor/squizlabs/php_codesniffer/bin/phpcs
Path Code Beautifier
/var/www/html/vendor/squizlabs/php_codesniffer/bin/phpcbf