docker compose for X86 and ARM, good luck

pull/135/head
oc 2022-01-27 17:49:35 +08:00
parent 6c926209bd
commit 4792821e8e
4 changed files with 8 additions and 5 deletions

View File

@ -33,7 +33,7 @@ docker run -d --restart=always --name=serverstatus -v ~/serverstatus-config.json
`ServerStatus`: docker-compose up -d
`ServerStatus with tgbot`: docker-compose -f docker-compose-telegram.yml up -d
`ServerStatus with tgbot`: TG_CHAT_ID=你的电报ID TG_BOT_TOKEN=你的电报密钥 docker-compose -f docker-compose-telegram.yml up -d
```

View File

@ -4,7 +4,7 @@ services:
build:
context: .
dockerfile: Dockerfile
image: cppla/serverstatus:latest
image: serverstatus_server
container_name: serverstatus
restart: unless-stopped
networks:
@ -20,14 +20,15 @@ services:
build:
context: ./plugin
dockerfile: Dockerfile-telegram
image: serverstatus_bot
container_name: bot4sss
restart: unless-stopped
networks:
serverstatus-network:
ipv4_address: 172.23.0.3
environment:
- TG_CHAT_ID=tg_chat_id
- TG_BOT_TOKEN=tg_bot_token
- TG_CHAT_ID=${TG_CHAT_ID}
- TG_BOT_TOKEN=${TG_BOT_TOKEN}
networks:
serverstatus-network:

View File

@ -4,6 +4,7 @@ services:
build:
context: .
dockerfile: Dockerfile
image: serverstatus_server
container_name: serverstatus
restart: unless-stopped
networks:

View File

@ -1,9 +1,10 @@
FROM nyurik/alpine-python3-requests
FROM python:alpine
LABEL maintainer="lidalao"
LABEL version="0.0.1"
LABEL description="Telegram Bot for ServerStatus"
WORKDIR /app
RUN pip install requests
COPY ./bot-telegram.py .
CMD [ "python", "./bot-telegram.py" ]