Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/one2r/docker-env
常用 web 环境 docker 配置
https://github.com/one2r/docker-env
Last synced: 5 days ago
JSON representation
常用 web 环境 docker 配置
- Host: GitHub
- URL: https://github.com/one2r/docker-env
- Owner: One2r
- License: mit
- Created: 2017-12-22T12:49:22.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-10T10:32:44.000Z (3 months ago)
- Last Synced: 2024-08-10T11:40:55.684Z (3 months ago)
- Language: Lua
- Homepage:
- Size: 4.4 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-env
## 简介
常用 web 环境 docker 配置。## 使用
1. 克隆项目
```git clone [email protected]:One2r/docker-env.git```2. ```cd docker-env```
2. 编译镜像
- PHP 镜像
```
docker build --force-rm=true -f ./dockerfiles/php/7.4-dockerfile . -t php:my-7.4-fpm
docker build --force-rm=true -f ./dockerfiles/php/8.2-dockerfile . -t php:my-8.2-fpm
```
- jupyterhub 镜像
```docker build --force-rm=true -f ./dockerfiles/jupyterhub-dockerfile . -t jupyterhub:my-jupyterhub```- openresty gateway 镜像
```docker build --force-rm=true -f ./dockerfiles/gateway-dockerfile . -t openresty:gateway```
- modsecurity-audit-agent 镜像
```docker build --force-rm=true -f ./dockerfiles/modsecurity-audit-agent-dockerfile . -t modsecurity-audit-agent:latest```- redis with plugin 镜像
```docker build --force-rm=true -f ./dockerfiles/redis-dockerfile . -t redis:6-with-plugin```3. 创建容器网络
```docker network create --subnet=192.168.1.0/24 dev```4. 启动服务
1. 修改配置
```
cd compose
cp .env.example .env
vim .env
```2. 启动服务
- web gateway
```docker compose -f ./gateway-compose.yml up```- php 环境
```docker compose -f ./phpenv-compose.yml up```- skywalking
```docker compose -f ./skywalking-docker-compose.yml up```99. 其他
- ELK 推荐使用 ```[email protected]:deviantony/docker-elk.git``` 项目