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

参考界面


posted on 2018-11-09 15:21  荣锋亮  阅读(687)  评论(0编辑  收藏  举报

导航