Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luckykenlin/laravel-image
https://github.com/luckykenlin/laravel-image
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/luckykenlin/laravel-image
- Owner: luckykenlin
- Created: 2023-10-12T19:48:47.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-12T20:01:58.000Z (about 1 year ago)
- Last Synced: 2024-11-04T22:42:15.296Z (2 months ago)
- Language: PHP
- Size: 152 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Usage
To get started, make sure you have [Docker installed](https://docs.docker.com/docker-for-mac/install/) on your system, and then clone this repository.
Next, navigate in your terminal to the directory you cloned this and Install laravel, make sure they are under the same root.
## Dev
Spin up the containers by running `docker-compose up -d`.The following are built for our web server, with their exposed ports detailed:
- **nginx** - `:80`
- **mysql** - `:3306`
- **php** - `:9000`Use the following command examples from your project root, modifying them to fit your particular use case.
- `cp .env.example .env`
- `docker-compose exec app composer install`
- `docker-compose exec app php artisan key:generate`
- `docker-compose exec app php artisan migrate`
- `docker-compose exec app php artisan db:seed`## Production
#### Step 1: prepare app image via app.dockerfile
#### Step 2: prepare web image via web.dockerfile
#### Step 3: copy production env file rename as .env.production under root directory- `cp .env.production .env`
- `docker-compose -f docker-compose.production.yml up -d --build`watchtower will restart container if app or web image update.