Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/korngsamnang/dockerized-laravel-app
Dockerize a Laravel app with MySQL and Nginx.
https://github.com/korngsamnang/dockerized-laravel-app
docker-laravel nginx
Last synced: 6 days ago
JSON representation
Dockerize a Laravel app with MySQL and Nginx.
- Host: GitHub
- URL: https://github.com/korngsamnang/dockerized-laravel-app
- Owner: korngsamnang
- Created: 2024-12-23T11:25:02.000Z (about 1 month ago)
- Default Branch: master
- Last Pushed: 2024-12-26T06:39:37.000Z (about 1 month ago)
- Last Synced: 2025-01-23T02:17:31.544Z (6 days ago)
- Topics: docker-laravel, nginx
- Language: PHP
- Homepage:
- Size: 92.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Step to Run
- Ensure the .env file is properly configured with database credentials for example:
```bash
# Database configuration
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=user
DB_PASSWORD=password# MySQL root password
MYSQL_ROOT_PASSWORD=secret
MYSQL_DATABASE=laravel
MYSQL_USER=user
MYSQL_PASSWORD=password
```- Build and start the containers:
```bash
docker-compose up --build -d
```