2023-08-10 12:27:18 +08:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
2023-08-10 13:10:49 +08:00
|
|
|
pzx-web-api-1:
|
2023-08-10 12:27:18 +08:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./Dockerfile
|
2023-08-10 13:10:49 +08:00
|
|
|
container_name: pzx-web-api-1
|
|
|
|
hostname: pzx-web-api-1
|
2023-08-10 12:27:18 +08:00
|
|
|
ports:
|
|
|
|
- "5010:5000"
|
|
|
|
volumes:
|
|
|
|
- .:/app
|
|
|
|
environment:
|
|
|
|
TZ: "Asia/Shanghai"
|
|
|
|
LOG_LEVEL: "DEBUG"
|
|
|
|
env_file:
|
|
|
|
- .apiflaskenv
|
|
|
|
- .apiflask.env
|
|
|
|
working_dir: /app
|
|
|
|
tty: true
|
|
|
|
restart: always
|
|
|
|
command: ["sh", "docker-deploy.sh"]
|
2023-08-10 13:10:49 +08:00
|
|
|
pzx-web-api-2:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./Dockerfile
|
|
|
|
container_name: pzx-web-api-2
|
|
|
|
hostname: pzx-web-api-2
|
|
|
|
ports:
|
|
|
|
- "5020:5000"
|
|
|
|
volumes:
|
|
|
|
- .:/app
|
|
|
|
environment:
|
|
|
|
TZ: "Asia/Shanghai"
|
|
|
|
LOG_LEVEL: "DEBUG"
|
|
|
|
env_file:
|
|
|
|
- .apiflaskenv
|
|
|
|
- .apiflask.env
|
|
|
|
working_dir: /app
|
|
|
|
tty: true
|
|
|
|
restart: always
|
|
|
|
command: [ "sh", "docker-deploy.sh" ]
|
2023-10-24 17:16:13 +08:00
|
|
|
pzx-web-api-3:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./Dockerfile
|
|
|
|
container_name: pzx-web-api-3
|
|
|
|
hostname: pzx-web-api-3
|
|
|
|
ports:
|
|
|
|
- "5030:5000"
|
|
|
|
volumes:
|
|
|
|
- .:/app
|
|
|
|
environment:
|
|
|
|
TZ: "Asia/Shanghai"
|
|
|
|
LOG_LEVEL: "DEBUG"
|
|
|
|
env_file:
|
|
|
|
- .apiflaskenv
|
|
|
|
- .apiflask.env
|
|
|
|
working_dir: /app
|
|
|
|
tty: true
|
|
|
|
restart: always
|
|
|
|
command: [ "sh", "docker-deploy.sh" ]
|
|
|
|
pzx-web-api-4:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: ./Dockerfile
|
|
|
|
container_name: pzx-web-api-4
|
|
|
|
hostname: pzx-web-api-4
|
|
|
|
ports:
|
|
|
|
- "5040:5000"
|
|
|
|
volumes:
|
|
|
|
- .:/app
|
|
|
|
environment:
|
|
|
|
TZ: "Asia/Shanghai"
|
|
|
|
LOG_LEVEL: "DEBUG"
|
|
|
|
env_file:
|
|
|
|
- .apiflaskenv
|
|
|
|
- .apiflask.env
|
|
|
|
working_dir: /app
|
|
|
|
tty: true
|
|
|
|
restart: always
|
|
|
|
command: [ "sh", "docker-deploy.sh" ]
|
2023-08-10 13:10:49 +08:00
|
|
|
|
|
|
|
|