This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# Installing Laravel Framework on Ubuntu/Debian with Nginx and PHP-FPM 8.1 | |
git_laravel="https://github.com/laravel/laravel.git" | |
php_version="8.1" | |
apt update | |
# Install dependencies | |
apt -y install lsb-release apt-transport-https ca-certificates git wget curl unzip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
command rrdtool || sudo apt-get install rrdtool | |
command pngquant || sudo apt-get install pngquant | |
rrdtools_dir=/var/www/html/laravel/public/images/temp-sensor | |
rrdtools_db=cpu_temp_data.rrd | |
create(){ | |
rrdtool create $rrdtools_dir/$rrdtools_db \ | |
--start now \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
db: | |
image: postgres:13 | |
volumes: | |
- db-data:/var/lib/postgresql/data/pgdata | |
ports: | |
- 5432:5432/tcp | |
environment: | |
- POSTGRES_PASSWORD=odoo |