Skip to content

Commit

Permalink
Merge branch 'master' of github.com:jhao104/proxy_pool
Browse files Browse the repository at this point in the history
  • Loading branch information
jhao104 committed Jul 20, 2022
2 parents e99ae59 + 875371b commit 47ad4cc
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,40 @@ docker pull jhao104/proxy_pool

docker run --env DB_CONN=redis://:password@ip:port/0 -p 5010:5010 jhao104/proxy_pool:2.4.0
```
#### docker-compose

- 将如下内容保存到 `docker-compose.yaml`

```yaml
version: '3'

networks:
proxy_pool:
driver: bridge

services:
proxy_pool:
image: jhao104/proxy_pool:2.4.0
environment:
- DB_CONN=redis://@redis:6379/0
ports:
- '5010:5010'
depends_on:
- redis
networks:
- proxy_pool
restart: unless-stopped

redis:
image: redis:5.0
ports:
- '6379:6379'
networks:
- proxy_pool
restart: unless-stopped
```
- 运行: `docker-compose up -d`

### 使用

Expand Down

0 comments on commit 47ad4cc

Please sign in to comment.