From bffb0ac37af5e7de0ff97aba217a267fce3302a0 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Tue, 24 Oct 2023 17:16:13 +0800 Subject: [PATCH] fix: add instances --- docker-compose.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 14e3168..a40b1eb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -41,5 +41,45 @@ services: 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" ]