Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/odirleiborgert/docker-boilerplate
https://github.com/odirleiborgert/docker-boilerplate
Last synced: about 13 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/odirleiborgert/docker-boilerplate
- Owner: odirleiborgert
- Created: 2024-12-14T03:34:23.000Z (10 days ago)
- Default Branch: main
- Last Pushed: 2024-12-17T11:20:20.000Z (6 days ago)
- Last Synced: 2024-12-17T12:24:40.167Z (6 days ago)
- Language: PHP
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Docker Boilerplate
1. [Laravel](#laravel)
2. [Laravel Task](#laravel-task)
3. [Laravel Queue](#laravel-queue)
4. [Postgres](#postgres)
5. [Mysql](#mysql)
6. [Phpmyadmin](#phpmyadmin)
7. [Redis](#redis)
8. [RedisInsight](#redisinsight)
9. [MongoDB](#mongodb)
10. [ElasticSearch](#elasticsearch)
11. [Mailhog](#mailhog)
12. [Vue with Vite](#vue-with-vite)---------------------------------------------
##### Build and start the containers
```bash
docker compose up -d --build
```#### Stop the containers
```bash
docker compose down
```#### Execute a command in a container
```bash
docker exec -it laravel php -v
```#### Show the logs of a container
```bash
docker logs -f [container_name]
```---------------------------------------------
## Laravel
##### Install composer
```bash
docker exec -it laravel composer install
```##### Copy .env file
```bash
docker exec -it laravel cp .env.example .env
```##### Key Generate
```bash
docker exec -it laravel php artisan key:generate
```## Laravel Task
#### Check logs
```bash
docker logs -f laravel_task
```#### Permission do artisan
```bash
docker exec -it laravel_task sh
```
```bash
chmod +x /var/www/artisan
```#### Execute manual
```bash
docker exec -it laravel_task php /var/www/artisan schedule:work
```## Laravel Queue
## Mongodb
## Postgres
## Redis
## RedisInsight
- http://localhost:5540
- Host: redis
- Port: 6379
- Username: default
- Password: null## Mysql
## Phpmyadmin
- http://localhost:8081/
- user: root
- password: root## ElasticSearch
- Elasticvue
- Extension for ElasticSearch
- Install from https://chromewebstore.google.com/detail/elasticvue/hkedbapjpblbodpgbajblpnlpenaebaa## Mailhog
- http://localhost:8025/
- Documentation https://github.com/mailhog/MailHog
- Change this to .env file
```env
MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
```
## Vue with Vite#### Create a new project
```bash
docker exec -it vue npm create vite@latest ./ --template vue
```#### Install dependencies
```bash
docker exec -it vue npm install
```- http://localhost:5173
## TODO
- Kafka or Rabbitmq
- Laravel Warden
- Laravel Reverb
- Laravel Telescope
- Laravel Pulse
- React
- React Native