update doc
This commit is contained in:
parent
94a4da983f
commit
e31d355dc8
|
@ -10,7 +10,7 @@ api = APIBlueprint('api', __name__)
|
||||||
|
|
||||||
@api.get('/hello')
|
@api.get('/hello')
|
||||||
def hello():
|
def hello():
|
||||||
result_one = f'我是您的专属接口提供服务器: {os.environ["HOSTNAME"]}'
|
result_one = f'我是您的专属接口提供服务器:'
|
||||||
result_two = f'我的机器参数如下'
|
result_two = f'我的机器参数如下'
|
||||||
result_three = f'操作系统:{platform.system()}'
|
result_three = f'操作系统:{platform.system()}'
|
||||||
text = """
|
text = """
|
||||||
|
@ -59,6 +59,8 @@ def hello():
|
||||||
<br />
|
<br />
|
||||||
<span style="font-size:30px">
|
<span style="font-size:30px">
|
||||||
<a href=""> """ + result_one + """</a>
|
<a href=""> """ + result_one + """</a>
|
||||||
|
<br />
|
||||||
|
<a href=""> """ + f'{os.environ["HOSTNAME"]} ' + f'进程 {socket.gethostname()}' + """</a>
|
||||||
</span>
|
</span>
|
||||||
<br />
|
<br />
|
||||||
<span style="font-size:25px">
|
<span style="font-size:25px">
|
||||||
|
|
|
@ -5,8 +5,6 @@ services:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: ./Dockerfile
|
dockerfile: ./Dockerfile
|
||||||
container_name: pzx-web-api
|
|
||||||
hostname: pzx-web-api
|
|
||||||
ports:
|
ports:
|
||||||
- "5010:5000"
|
- "5010:5000"
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -21,3 +19,6 @@ services:
|
||||||
tty: true
|
tty: true
|
||||||
restart: always
|
restart: always
|
||||||
command: ["sh", "docker-deploy.sh"]
|
command: ["sh", "docker-deploy.sh"]
|
||||||
|
deploy:
|
||||||
|
mode: replicated
|
||||||
|
replicas: 3
|
||||||
|
|
Loading…
Reference in New Issue