GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — stock/docker-compose at master · pythonstock/stock

Expand file tree

/

docker-compose

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

docker-compose

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
docker
docker
 
 
mysql
mysql
 
 
nginx
nginx
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build_stock.sh
build_stock.sh
 
 
dev-docker-compose-restart.sh
dev-docker-compose-restart.sh
 
 
dev-docker-compose.yml
dev-docker-compose.yml
 
 
docker-compose.yml
docker-compose.yml
 
 
nginx.conf
nginx.conf
 
 

README.md

Outline

镜像仓库选择

https://github.com/DaoCloud/public-image-mirror

# python使用镜像
docker.m.daocloud.io/library/python:3.11-slim-bullseye

# mysql使用:
docker.m.daocloud.io/library/mysql:8

本地部署方法

git clone [email protected]:pythonstock/docker-compose.git

cd docker-compose

docker-compose up -d

访问地址

http://localhost:9090/

查看日至,进入项目代码

# 查看启动日志:
docker logs -f stock

# 进入stock容器
docker exec -it stock bash

开发模式,映射stock 代码方法

直接使用 dev yml 即可,会映射stock到/data/stock 然后在外部修改代码容器中运行即可。

docker-compose  -f dev-docker-compose.yml  up -d
docker-compose  -f docker-compose-v2.0.yml up -d

老镜像还保存一个版本

pythonstock/pythonstock:v2021
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.