Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
/ teaweb-build Public archive

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

License

Notifications You must be signed in to change notification settings

tossp/teaweb-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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段手动复制配置文件,否则会导致服务无法启动