docker-compose-telegram.yml 880 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. version: "3"
  2. services:
  3. serverstatus:
  4. build:
  5. context: .
  6. dockerfile: Dockerfile
  7. image: serverstatus_server
  8. container_name: serverstatus
  9. restart: unless-stopped
  10. networks:
  11. serverstatus-network:
  12. ipv4_address: 172.23.0.2
  13. volumes:
  14. - ./server/config.json:/ServerStatus/server/config.json
  15. - ./web/json:/usr/share/nginx/html/json
  16. ports:
  17. - 35601:35601
  18. - 8080:80
  19. bot:
  20. build:
  21. context: ./plugin
  22. dockerfile: Dockerfile-telegram
  23. image: serverstatus_bot
  24. container_name: bot4sss
  25. restart: unless-stopped
  26. networks:
  27. serverstatus-network:
  28. ipv4_address: 172.23.0.3
  29. environment:
  30. - TG_CHAT_ID=${TG_CHAT_ID}
  31. - TG_BOT_TOKEN=${TG_BOT_TOKEN}
  32. networks:
  33. serverstatus-network:
  34. name: serverstatus-network
  35. ipam:
  36. config:
  37. - subnet: 172.23.0.0/24