GitXplorerGitXplorer
z

stock

public
36 stars
14 forks
0 issues

Commits

List of commits on branch master.
Verified
6426beb43bcf3795f16a9caf91e157a21a9f9fb3

Update README.md

zzhangsheng377 committed 6 months ago
Unverified
777e3238ebf50384728b79c0a8e8a7a07fcc1322

优化初始化时的逻辑

zzhangsheng377 committed 2 years ago
Unverified
325b8772db79f6737fd1f80033ca200138d6d1a8

Merge branch 'master' into master-github

zzhangsheng377 committed 2 years ago
Unverified
10184dbe4fb4196dc70fe836b3df6e5db2beae08

更新忽略项

zzhangsheng377 committed 2 years ago
Verified
f09c2a31087e241735e7dc09896f98abcfcdca52

Rename docker-image_base.yml to docker-image_base.yml.bak

zzhangsheng377 committed 2 years ago
Verified
ab9ccbd582036a9c69c1558a5079d480a28938ce

Rename docker-image_base.yml.bak to docker-image_base.yml

zzhangsheng377 committed 2 years ago

README

The README file for this repository.

TODO

  • [ ] 用守护进程起多进程的方式,拉起服务。节约容器的使用。

redis

docker run -d --name redis -v /opt/docker/data/redis:/data -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro --restart always -p 6379:6379 redis

redis-cli -h 127.0.0.1 -p 6379

mongo

docker run -d --name mongo -v /opt/docker/data/mongo:/data -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro --restart always -p 27017:27017 mongo

mongo 127.0.0.1:27017
show dbs
use tushare
db.sh_600196.insert({"test":"testdb"})

mongodump -h 127.0.0.1:27017 -d tushare -o /data/mongodump/tushare
mongorestore -h 127.0.0.1:27017 -d tushare --dir /data/mongodump/tushare

save_tushare

docker build -t zhangsheng377/save_tushare -f Dockerfile_tushare .

docker run -ti -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro zhangsheng377/save_tushare

docker run -d --name save_tushare -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro --restart always zhangsheng377/save_tushare

stock

docker build -t zhangsheng377/stock .

docker run -ti zhangsheng377/stock
docker run -ti zhangsheng377/stock /bin/bash
docker run -ti -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro zhangsheng377/stock

docker run -d --name stock -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro --restart always zhangsheng377/stock

save_policies

docker build -t zhangsheng377/save_policies -f Dockerfile_policy .

docker run -ti -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro zhangsheng377/save_policies

docker run -d --name save_policies -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro --restart always zhangsheng377/save_policies

部署花生壳 phddns

docker build -t zhangsheng377/phddns -f Dockerfile_phddns .

docker run -ti -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro zhangsheng377/phddns  /bin/bash

docker run -d --name phddns -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro --restart always zhangsheng377/phddns

部署微信服务器

docker build -t zhangsheng377/server -f Dockerfile_server .

docker run -ti -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro zhangsheng377/server  /bin/bash

docker run -d --name server -v /etc/timezone:/etc/timezone:ro -v /etc/localtime:/etc/localtime:ro -p 5000:5000 --restart always zhangsheng377/server