mirror of
https://oauth2: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@github.com/m1ngsama/automa.git
synced 2026-05-10 19:11:07 +08:00
Compose improvements: - forgejo: add healthcheck (/api/healthz), ROOT_URL + SSH_PORT env, LFS - tailscale: drop redundant privileged (use cap_add only), use devices for /dev/net/tun, mount /lib/modules, reliable healthcheck (tailscale status), profiles for opt-in DERP, headscale comment in .env.example - uptime-kuma: add built-in healthcheck (extra/healthcheck) - filesuite: add healthchecks for both cloudreve and qbittorrent - minecraft: add mc-health check (built into itzg image), simplify volumes - teamspeak: add healthcheck via ServerQuery (nc localhost 10011) - nextcloud: add healthchecks for all 3 services, depends_on with service_healthy conditions so startup order is correct CLI improvements: - Fix docker compose detection (was broken with space in arg) - Use global array for project discovery (no word-splitting bugs) - Empty selection no longer defaults to "all" (safety) - Show .env.example comments as hints during interactive configure - Required fields (empty default) loop until user provides a value - Disable colors when stdout is not a terminal - compose() wrapper auto-adds --env-file - Deduplicate project_exists / project_dir helpers
28 lines
693 B
YAML
28 lines
693 B
YAML
services:
|
|
mc:
|
|
image: itzg/minecraft-server:latest
|
|
container_name: mc-fabric
|
|
ports:
|
|
- "${MC_PORT:-25565}:25565"
|
|
- "${RCON_PORT:-25575}:25575"
|
|
environment:
|
|
EULA: "TRUE"
|
|
TYPE: "${MC_TYPE:-FABRIC}"
|
|
VERSION: "${MC_VERSION:-1.21.1}"
|
|
MEMORY: "${MC_MEMORY:-4G}"
|
|
ONLINE_MODE: "${MC_ONLINE_MODE:-false}"
|
|
ENABLE_RCON: "true"
|
|
RCON_PORT: 25575
|
|
RCON_PASSWORD: "${RCON_PASSWORD}"
|
|
TZ: "${TZ:-Asia/Shanghai}"
|
|
volumes:
|
|
- ./data:/data
|
|
healthcheck:
|
|
test: mc-health
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 5
|
|
start_period: 120s
|
|
restart: unless-stopped
|
|
tty: true
|
|
stdin_open: true
|