Exceptionless分布式错误日志部署
version: '3.7' services: api: depends_on: - elasticsearch - redis build: context: . target: api image: exceptionless/api:6.0.0 environment: TZ: Asia/Shanghai EX_AppMode: Production EX_BaseURL: http://外网IP:5100/#! EX_ConnectionStrings__Cache: provider=redis EX_ConnectionStrings__Elasticsearch: server=http://内网ip:9200 EX_ConnectionStrings__Email: smtps://公司邮箱 EX_SmtpFrom: 公司邮箱 EX_ConnectionStrings__MessageBus: provider=redis #EX_ConnectionStrings__Metrics: provider=statsd;server=statsd; EX_ConnectionStrings__Queue: provider=redis EX_ConnectionStrings__Redis: server=redis,abortConnect=false EX_ConnectionStrings__Storage: provider=folder;path=/app/storage EX_RunJobsInProcess: 'false' ports: - 5000:80 # This can be commented out if using reverse proxy. volumes: - /app/storage/exceptionless:/app/storage restart: always jobs: depends_on: - api build: context: . target: job image: exceptionless/job:6.0.0 environment: TZ: Asia/Shanghai EX_AppMode: Production EX_BaseURL: http://外网IP:5100/#! EX_ConnectionStrings__Cache: provider=redis EX_ConnectionStrings__Elasticsearch: server=http://内网IP:9200 EX_ConnectionStrings__Email: smtps://公司邮箱 EX_SmtpFrom: 公司邮箱 EX_ConnectionStrings__MessageBus: provider=redis #EX_ConnectionStrings__Metrics: provider=statsd;server=statsd; EX_ConnectionStrings__Queue: provider=redis EX_ConnectionStrings__Redis: server=redis,abortConnect=false EX_ConnectionStrings__Storage: provider=folder;path=/app/storage volumes: - /app/storage/exceptionless:/app/storage restart: always ui: image: exceptionless/ui:2.9.2 environment: TZ: Asia/Shanghai AppMode: Production EX_ApiUrl: http://外网IP:5000 #EX_Html5Mode: 'false' #EX_EnableSsl: 'false' #EX_EnableAccountCreation: 'false' ports: - 5100:80 # This can be commented out if using reverse proxy. restart: always # reverseproxy: # depends_on: # - api # - ui # image: valian/docker-nginx-auto-ssl # ports: # - 80:80 # - 443:443 # volumes: # - ssldata:/etc/resty-auto-ssl # environment: # ALLOWED_DOMAINS: '(ex-ui|ex-api).mydomainn.com' # SITES: 'ex-ui.mydomainn.com=ui;ex-api.mydomainn.com=api' elasticsearch: image: exceptionless/elasticsearch:7.7.0 environment: TZ: Asia/Shanghai discovery.type: single-node xpack.security.enabled: 'false' ES_JAVA_OPTS: -Xms2g -Xmx2g ports: - 9200:9200 - 9300:9300 volumes: - /app/storage/exceptionless/elasticsearch/data:/usr/share/elasticsearch/data restart: always kibana: depends_on: - elasticsearch image: docker.elastic.co/kibana/kibana:7.7.0 ports: - 5601:5601 environment: TZ: Asia/Shanghai restart: always redis: image: redis:5.0-alpine ports: - 6379:6379 volumes: - /app/storage/exceptionless/redis/data:/data restart: always #volumes: #esdata7: #driver: local #appdata: #driver: local #ssldata: #driver: local
有可能拉取exceptionless镜像报错,手动拉取一下镜像
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步