Source Repository: Fu-XDU/Covid19-Charts - GitHub
Get environment variable from https://www.wapi.cn/api_detail/94/222.html
Start container with command
docker run --name covid19Data -d -e api_url='#[api_url]' -e appid='#[appid]' -e secret='#[secret]' -e ALLOWED_HOSTS="['0.0.0.0']" -p "8000:8000" fuming/covid-data:latest
Or start container with docker-compose.yaml:
version: '3'
services:
server:
image: fuming/covid-data:latest
container_name: covid19Data
ports:
- "8000:8000"
# Get environment variable from https://www.wapi.cn/api_detail/94/222.html
environment:
api_url: #[api_url]
appid: #[appid]
secret: #[secret]
ALLOWED_HOSTS: "['0.0.0.0']" #Optional. Default:['0.0.0.0']
networks:
- covid19Data-net
networks:
covid19Data-net:
name: covid19Data-net
driver: bridge
Run docker-compose up -d
Index: http://0.0.0.0:8000/index
Data: http://0.0.0.0:8000/index/data
Content type
Image
Digest
Size
26.9 MB
Last updated
over 4 years ago
docker pull fuming/covid-data