Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/odirleiborgert/docker-boilerplate


https://github.com/odirleiborgert/docker-boilerplate

Last synced: about 13 hours ago
JSON representation

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