https://github.com/edenreich/raspbian-webapp
Easy setup for PHP-FPM, Nginx and MySQL on Raspberry Pi
https://github.com/edenreich/raspbian-webapp
Last synced: 7 months ago
JSON representation
Easy setup for PHP-FPM, Nginx and MySQL on Raspberry Pi
- Host: GitHub
- URL: https://github.com/edenreich/raspbian-webapp
- Owner: edenreich
- Created: 2018-05-10T22:27:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-12T16:02:12.000Z (over 7 years ago)
- Last Synced: 2025-01-16T16:42:50.528Z (9 months ago)
- Language: Shell
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Raspberry Pi Webapp
Easy and secure setup for Raspberry Pi Webapp.
What's included:
- PHP-FPM 7.0
- Nginx 1.6.*
- MySQL - Mariadb 10.1.3## Requirements
- docker-cli
- docker-compose## Installation
First ssh into your raspberry pi and install docker client:
```sh
curl -sSL https://get.docker.com | sh
```Then install docker-compose using pip:
```sh
pip install docker-compose
```Lastly clone the repository:
```sh
git clone https://github.com/edenreich/raspbian-webapp.git && cd raspbian-webapp
```
## UsageRun the containers:
```sh
docker-compose up -d
```Create a new laravel project for example:
```sh
docker exec -it php composer create-project laravel/laravel . --prefer-dist
```Clone existing project:
```sh
git clone [project] application \
&& docker exec -it php composer install
```