# face-recognition-docker **Repository Path**: HNUDLG/face-recognition-docker ## Basic Information - **Project Name**: face-recognition-docker - **Description**: 是使用Docker部署人脸平台 - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-12-09 - **Last Updated**: 2022-12-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: Docker, face-recognition ## README # face-recognition-docker 通过 Docker 运行人脸系统。 ## 在 Ubuntu 上安装 Docker https://docs.docker.com/engine/install/ubuntu/ ## 运行 ### Clone 项目 ```shell git clone --recursive https://gitee.com/HNUDLG/face-recognition-docker.git ``` ### 修改前端环境变量 ```shell cd face-recognition-docker touch ./face-recognition-front/.env.production vim ./face-recognition-front/.env.production ``` 修改为如下配置: ```shell # just a flag ENV = 'production' # base api VUE_APP_BASE_API = 'https://<服务器的IP地址或域名>/api/v1.0' VUE_APP_MODEL_URL = 'https://<服务器的IP地址或域名>/model/model.json' ``` ### 准备权重 ```shell mkdir face-recognition-server/weights ``` ### 运行项目 ```shell sudo docker compose up -d ``` ### 开启防火墙 ```shell sudo ufw enable sudo ufw allow 80 sudo ufw allow 443 ``` ### 停止项目 ```shell sudo docker compose stop ```