一键导入
docker-compose
Use when adding or changing Docker Compose for telegram-home-bot: app service, .env, persistent H2 data, SonarQube profile, bridge/host networking.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when adding or changing Docker Compose for telegram-home-bot: app service, .env, persistent H2 data, SonarQube profile, bridge/host networking.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use for Dockerfile and container runtime changes in telegram-home-bot: Raspberry Pi/Linux runtime, fping/iproute2, Gradle bootJar, network mode, ports, logs.
Use when changing database schema, writing Flyway migrations, reviewing SQL migrations, or working with H2 and Spring Boot database startup.
Use for Hibernate/JPA/Flyway work in telegram-home-bot: H2 schema migrations, Kotlin entities, repositories, lazy relations, sequences, entity equality.
Use for Kotlin code in telegram-home-bot: JVM 17, Spring Boot Kotlin, Gradle Groovy DSL, src/main/java Kotlin layout, null-safety, constructor DI, ktlint.
Use when changing Docker, Docker Compose, runtime configuration, Raspberry Pi deployment, Linux service setup, or lightweight production deployment.
Use for Spring Boot work in telegram-home-bot: configuration, scheduling, security, Thymeleaf, Telegram bot, OpenWeather, actuator, events, testing.
| name | docker-compose |
| description | Use when adding or changing Docker Compose for telegram-home-bot: app service, .env, persistent H2 data, SonarQube profile, bridge/host networking. |
This project currently has no committed docker-compose.yml in the public repository. If one is needed, create it deliberately rather than assuming it already exists. If one is needed, it should define the THB application service and potentially a SonarQube service for code quality.
version: '3.8'
services:
thb:
build: .
image: thb-image
container_name: thb
ports:
- "80:8080"
network_mode: bridge
restart: unless-stopped
env_file:
- .env
volumes:
- thb-data:/application/data
sonarqube:
image: sonarqube:latest
container_name: sonarqube
ports:
- "9000:9000"
- "9092:9092"
restart: unless-stopped
volumes:
- sonarqube-data:/opt/sonarqube/data
profiles:
- tools
volumes:
thb-data:
sonarqube-data:
network_mode: bridge for LAN access (network scanning)network_mode: hostenv_file: .envTELEGRAM_TOKEN, TELEGRAM_BOT_CHAT_IDTELEGRAM_ENABLED, NETWORK_MONITOR_ENABLED, OPENWEATHER_ENABLED.env for configurationprofiles: [tools] for optional services like SonarQubesonarqube:
image: sonarqube:latest
ports:
- "9000:9000"
profiles:
- tools
.env filenetwork_mode: host unless on Raspberry Pi