pzx-web-api/docker-compose.yml

126 lines
2.7 KiB
YAML

version: "3"
services:
pzx-web-api-1:
build:
context: .
dockerfile: ./Dockerfile
container_name: pzx-web-api-1
hostname: pzx-web-api-1
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"]
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" ]
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" ]
pzx-web-api-5:
build:
context: .
dockerfile: ./Dockerfile
container_name: pzx-web-api-5
hostname: pzx-web-api-5
ports:
- "5050: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-6:
build:
context: .
dockerfile: ./Dockerfile
container_name: pzx-web-api-6
hostname: pzx-web-api-6
ports:
- "5060: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" ]