hangfire docker-compose 运行
hangfire 是一款基于.net 的任务调度系统
docker-compose 文件
version: '3'
services:
hangfire:
image: direktchark/hangfire
ports:
- 5000:5000
- 5001:5001
depends_on:
- "store"
store:
image: microsoft/mssql-server-linux:2017-latest
ports:
- "1433:1433"
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Hangfire1
包含任务的运行
实际上就是重新构建任务
version: '3'
services:
hangfire:
image: direktchark/hangfire
build:
context: hangfire_app/
ports:
- 5000:5000
- 5001:5001
depends_on:
- "store"
store:
image: microsoft/microsoft/mssql-server-linux:2017-latest
ports:
- "1433:1433"
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Hangfire1
参考界面