1. 从零开始搭建个人服务器

  • nginx
docker run --name nginx -d -p 80:80 -p 443:443 --restart=always \
    -v ~/nginx/nginx.conf:/etc/nginx/nginx.conf \
    -v ~/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf \
    -v ~/nginx/logs:/var/log/nginx \
    -v /etc/letsencrypt:/etc/letsencrypt \
    -v /etc/ssl:/etc/ssl \
    nginx
  • bark
docker run --name bark -dt -p 8080:8080 --restart=always \
    -v ~/bark/data:/data \
    finab/bark-server
  • webhook
docker run --name webhook -d -p 9000:9000 --restart=always \
    -v ~/webhook:/etc/webhook \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v /usr/bin/docker:/usr/bin/docker \
    hongkongkiwi/webhook -verbose -hooks=/etc/webhook/hooks.json -hotreload
  • resume
docker run --name resume -d -p 1006:80 --restart=always \
    -v ~/resume:/usr/share/nginx/html \
    nginx
  • blog
docker run --name blog -d -p 4000:80 --restart=always \
    -v ~/blog:/usr/share/nginx/html \
    nginx
  • mysql
docker run --name mysql -d -p 3306:3306 --restart=always \
    -v ~/mysql/conf:/etc/mysql \
    -v ~/mysql/logs:/var/log/mysql \
    -v ~/mysql/data:/var/lib/mysql \
    -e MYSQL_ROOT_PASSWORD=123456 \
    mysql:5.7
作者: 雪之梦技术驿站
链接: https://snowdreams1006.github.io/zero2devops/
来源: 雪之梦技术驿站
本文原创发布于「雪之梦技术驿站」,转载请注明出处,谢谢合作!

https://snowdreams1006.github.io/snowdreams1006-wechat-open.png

© snowdreams1006 all right reserved,powered by Gitbook文件修订时间: 2020-02-18 23:27:53

results matching ""

    No results matching ""