pzx-web-api/docker-compose.yml

25 lines
477 B
YAML

version: "3"
services:
pzx-web-api:
build:
context: .
dockerfile: ./Dockerfile
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"]
deploy:
mode: replicated
replicas: 3