/teaweb-build

持续追新TeaWeb项目集成,直到我累了,嗯嗯

Primary LanguageHTMLMIT LicenseMIT

Build Status

docker使用说明

docker-compose.yml文件为例

mkdir storage
docker network create ts_net
touch docker-compose.yml
version: '3'

services:
 teaweb:
  image: tossp/teaweb
  container_name: teaweb
  volumes:
    - ./storage/backups:/teaweb/backups
    - ./storage/configs:/teaweb/configs
    - ./storage/logs:/teaweb/logs
    - ./_VHS:/VHS
  expose:
    - "80"
    - "443"
    - "7777"
  ports:
    - "80:80"
    - "443:443"
    - "7777:7777"
  networks:
    - tsnet
 # healthcheck:
  #  test: ["CMD-SHELL", "/usr/bin/wget --quiet --tries=1 --spider http://localhost/ || exit 1"]
  restart: on-failure


networks:
  tsnet:
    external:
      name: ts_net

外挂了configs卷,暂时需要参考.travis.yml文件的before_deploy段手动复制配置文件,否则会导致服务无法启动