Skip to content

Commit

Permalink
更新docker
Browse files Browse the repository at this point in the history
  • Loading branch information
pencil1 committed Nov 24, 2022
1 parent c0a12d5 commit adbe833
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,21 @@
version: '3'
services:
# 服务名称
apitestmanage:
ApiTestManage:
# 镜像:版本
container_name: apitestmanage
container_name: ApiTestManage
image: apitest:v1
# 数据卷 映射本地文件到容器
volumes:
- /home/apitestmanage:/Project/apitest/apitestmanage
- /home/ApiTestManage:/Project/apitest/ApiTestManage
- /usr/share/zoneinfo/Asia/:/usr/share/zoneinfo/Asia/
ports:
- "8091:8091"
extra_hosts:
- "apiassethktest1.aulton.com:10.100.3.227"
- "govdev.aulton.com:10.100.3.151"
- "drivertest1.aulton.com:10.100.3.227"
- "ecosystemdev.aulton.com:10.100.3.151"
- "appdev.aulton.com:10.100.3.151"
- "apptest.aulton.com:10.100.3.151"
- "sync-test.aulton.com:10.100.3.151"
- "driverdev.aulton.com:10.100.3.151"
- "apptest1.aulton.com:10.100.3.227"
- "mptest1.aulton.com:10.100.3.227"
- "apiusercentertest1.aulton.com:10.100.3.227"
- "apioperationtest1.aulton.com:10.100.3.227"
- "apiusercenterdev.aulton.com:10.100.3.151"
- "apioperationdev.aulton.com:10.100.3.151"

environment:
FLASK_CONFIG: Production
TZ: Asia/Shanghai
command: gunicorn -c ./apitestmanage/gunicorn_config.py manage:app --chdir /Project/apitest/apitestmanage
command: gunicorn -c ./ApiTestManage/gunicorn_config.py manage:app --chdir /Project/apitest/ApiTestManage
networks: #加入指定网络
- front
networks:
Expand Down

0 comments on commit adbe833

Please sign in to comment.