forked from jhao104/proxy_pool
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request jhao104#256 from nnnewb/feature/docker-enhancement
[refine] 允许 docker-compose up 直接运行服务而无需修改配置
- Loading branch information
Showing
6 changed files
with
37 additions
and
54 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
FROM python:3.6 | ||
WORKDIR /usr/src/app | ||
COPY . . | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV TZ Asia/Shanghai | ||
|
||
WORKDIR /usr/src/app | ||
COPY ./requirements.txt . | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY . . | ||
EXPOSE 5010 | ||
|
||
WORKDIR /usr/src/app/ | ||
CMD [ "python", "Run/main.py" ] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: '2' | ||
services: | ||
proxy_pool: | ||
build: . | ||
ports: | ||
- "5010:5010" | ||
links: | ||
- proxy_redis | ||
environment: | ||
db_type: SSDB | ||
ssdb_host: proxy_redis | ||
ssdb_port: 6379 | ||
proxy_redis: | ||
image: "redis" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,5 @@ werkzeug==0.11.15 | |
Flask==0.12 | ||
requests==2.20.0 | ||
lxml==3.7.2 | ||
|
||
pymongo | ||
redis | ||
|
||
|