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