pzx-web-api/docker-compose.yml

66 lines
1.4 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" ]