version: "3" services: pzx-web-api: build: context: . dockerfile: ./Dockerfile container_name: pzx-web-api hostname: pzx-web-api ports: - "5010:5000" volumes: - .:/app environment: TZ: "Asia/Shanghai" LOG_LEVEL: "DEBUG" HOSTNAME: $(cat /etc/hostname) env_file: - .apiflaskenv - .apiflask.env working_dir: /app tty: true restart: always command: ["sh", "docker-deploy.sh"]