Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lucenarenato/laravel6-mongo-application
Laravel 6.2, MongoDB, Cars, Books
https://github.com/lucenarenato/laravel6-mongo-application
laravel laravel6 mongodb php php72
Last synced: about 1 month ago
JSON representation
Laravel 6.2, MongoDB, Cars, Books
- Host: GitHub
- URL: https://github.com/lucenarenato/laravel6-mongo-application
- Owner: lucenarenato
- Created: 2020-04-12T03:13:58.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T03:13:14.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T11:04:44.713Z (about 1 month ago)
- Topics: laravel, laravel6, mongodb, php, php72
- Language: PHP
- Size: 3.3 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Laravel6-mongo-application
This repository was created for testing library https://github.com/jenssegers/laravel-mongodb
If you have to test something with library laravel-mongodb you can fork this repo (or mention me and i create branch)- PHP >= 7.2
- Composer
- MongoDB- ext-mongodb
```sh
sudo apt install php7.2 php7.2-common php7.2-cli php7.2-mongodb php-pear php7.2-dev
sudo pecl install mongodb
sudo bash
sudo echo "extension=mongodb.so" >> /etc/php/7.2/cli/php.ini
sudo echo "extension=mongodb.so" >> /etc/php/7.2/fpm/php.ini
sudo systemctl restart nginx.service
composer install && npm install && npm run dev```
- [Installing](#installing)
- https://packagist.org/packages/jenssegers/mongodb
- https://pusher.com/signup
- http://dashboard.pusher.com/
- http://laravel.com/
- https://vuejs.org/- [Traefik](#traefik)
## Installing
Run `docker-compose up -d`
## Traefik
[Docs](https://docs.traefik.io/)
You can install traefik in separate docker container and add containers in docker-compose.yml to network which traefil uses(for example traefik_proxy)
Example of `docker-compose.yml` for traefik
```yml
version: '3.7'services:
traefik:
container_name: traefik
image: traefik:v2.0
restart: always
networks:
- default
- traefik_proxy
command:
- "--log.level=DEBUG"
- "--providers.docker=true"
volumes:
- ./traefik.yml:/etc/traefik/traefik.yml
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "80:80"
- "8080:8080"networks:
traefik_proxy:
driver: bridge
name: traefik_proxy```