Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/czbone/oneliner-lemp-on-docker

Build LEMP environment on Docker server by one-liner command
https://github.com/czbone/oneliner-lemp-on-docker

almalinux centos8 docker docker-compose lemp mariadb nginx php rockylinux

Last synced: 14 days ago
JSON representation

Build LEMP environment on Docker server by one-liner command

Awesome Lists containing this project

README

        

# 1行でLEMP環境構築
サーバに`root`ログインし1行のコマンドを実行するだけでDockerコンテナを使用したLEMPサーバ環境が構築できるスクリプトです。

## 対象OS
- CentOS Linux v8
- Rocky Linux v8
- Alma Linux v8

## ライセンス

[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)

# 内容
Ansibleのローカル実行でDocker環境をインストールし、Dockerコンテナを使用してLEMP環境を構築します。

## LEMP環境

- db(Dockerコンテナ) - Mariadb最新
- PHP(Dockerコンテナ) - PHP8最新
- Nginx(Dockerコンテナ) - Nginx最新

## 主なインストールモジュール

### ホストサーバ
- docker-ce
- docker-ce-cli
- docker-compose

# 使い方
新規にOSをインストールしたサーバに`root`でログインし、以下の1行のコマンドをそのままコピーして実行します。

## 実行コマンド
```
curl https://raw.githubusercontent.com/czbone/oneliner-lemp-on-docker/master/script/build_env.sh | bash
```

## テスト
以下のURLにアクセスし、エラーなしで画面が表示されればOKです。

- http://[IPアドレス]/_sample/index.php
- http://[IPアドレス]/_sample/index2.php