43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
shulker:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/shulker/Dockerfile
|
|
container_name: shulker
|
|
restart: unless-stopped
|
|
user: "root"
|
|
# Configure everything inline here; no .env file required
|
|
environment:
|
|
# Discord configuration (fill these with your own values)
|
|
DISCORD_TOKEN: "YOUR_DISCORD_BOT_TOKEN_HERE"
|
|
DISCORD_CHANNEL_ID: "YOUR_DISCORD_CHANNEL_ID_HERE"
|
|
# If set, webhook mode is used; leave empty to use the bot account
|
|
WEBHOOK_URL: ""
|
|
|
|
# Display name/avatar for server-origin messages (webhook mode)
|
|
SERVER_NAME: "Minecraft Server"
|
|
SERVER_IMAGE: ""
|
|
|
|
# Message formatting and logging
|
|
DISCORD_MESSAGE_TEMPLATE: "<%username%> %message%"
|
|
DEBUG: "false"
|
|
|
|
# Tail local logs inside the container (recommended)
|
|
IS_LOCAL_FILE: "true"
|
|
# Optionally override the log path inside the container (default shown)
|
|
# LOCAL_FILE_PATH_OVERRIDE: "/minecraft/logs/latest.log"
|
|
volumes:
|
|
# No persistent /data needed; mount a tmpfs so Docker doesn't create an anonymous volume
|
|
- type: tmpfs
|
|
target: /data
|
|
# Map your host/server Minecraft logs into the container
|
|
# Update the path on the left side to point to your Minecraft server's log directory
|
|
- ./data/logs:/minecraft/logs:ro
|
|
# Port 8000 is only needed if you want to use webhook mode for remote log streaming
|
|
# ports:
|
|
# - "8000:8000"
|
|
|
|
|