mirror of
https://github.com//cppla/ServerStatus
synced 2025-12-14 01:33:54 +08:00
docker compose for X86 and ARM, good luck
This commit is contained in:
@@ -33,7 +33,7 @@ docker run -d --restart=always --name=serverstatus -v ~/serverstatus-config.json
|
|||||||
|
|
||||||
`ServerStatus`: docker-compose up -d
|
`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
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: cppla/serverstatus:latest
|
image: serverstatus_server
|
||||||
container_name: serverstatus
|
container_name: serverstatus
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
@@ -20,14 +20,15 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./plugin
|
context: ./plugin
|
||||||
dockerfile: Dockerfile-telegram
|
dockerfile: Dockerfile-telegram
|
||||||
|
image: serverstatus_bot
|
||||||
container_name: bot4sss
|
container_name: bot4sss
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
serverstatus-network:
|
serverstatus-network:
|
||||||
ipv4_address: 172.23.0.3
|
ipv4_address: 172.23.0.3
|
||||||
environment:
|
environment:
|
||||||
- TG_CHAT_ID=tg_chat_id
|
- TG_CHAT_ID=${TG_CHAT_ID}
|
||||||
- TG_BOT_TOKEN=tg_bot_token
|
- TG_BOT_TOKEN=${TG_BOT_TOKEN}
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
serverstatus-network:
|
serverstatus-network:
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
image: serverstatus_server
|
||||||
container_name: serverstatus
|
container_name: serverstatus
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
FROM nyurik/alpine-python3-requests
|
FROM python:alpine
|
||||||
|
|
||||||
LABEL maintainer="lidalao"
|
LABEL maintainer="lidalao"
|
||||||
LABEL version="0.0.1"
|
LABEL version="0.0.1"
|
||||||
LABEL description="Telegram Bot for ServerStatus"
|
LABEL description="Telegram Bot for ServerStatus"
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
RUN pip install requests
|
||||||
COPY ./bot-telegram.py .
|
COPY ./bot-telegram.py .
|
||||||
CMD [ "python", "./bot-telegram.py" ]
|
CMD [ "python", "./bot-telegram.py" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user