automa/minecraft/compose.yaml
m1ngsama 3433516287 refactor: restructure as self-contained project dirs with interactive CLI
- Remove old services/, bin/, config.sh, Makefile, setup.sh
- Each Docker Compose project is now a top-level self-contained directory
  with compose.yaml + .env.example (project self-governance)
- Add automa CLI: interactive deploy, status, logs, stop, update, config
- Add install.sh for curl-pipe-bash quick start
- New projects from production: uptime-kuma, tailscale+derp, monitoring
  (prometheus+grafana+blackbox+node-exporter), filesuite (cloudreve+qbt),
  huajibot, dockge, notification-center
- Clean up existing projects: forgejo, minecraft, teamspeak, nextcloud
- Sanitize all .env.example files (no real secrets)
2026-04-15 09:54:23 +08:00

24 lines
629 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
- ./mods:/data/mods
- ./configs:/configs:ro
restart: unless-stopped
tty: true
stdin_open: true