50 lines
1.6 KiB
YAML
50 lines
1.6 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
shulker:
|
|
image: gitea.taginu.com/marc/tfmc-website:latest
|
|
container_name: shulker
|
|
restart: unless-stopped
|
|
user: "root"
|
|
# Configure everything inline here; no .env file required
|
|
environment:
|
|
# Discord configuration (fill these)
|
|
DISCORD_TOKEN: "MTA3MTEwMzcwMDAyMzY0ODMyMA.GIlFkn.o10LKcpjlaLDvVsgF_WKZhz5ykPYf1KEds_g3I"
|
|
DISCORD_CHANNEL_ID: "1247178901004877916"
|
|
# If set, webhook mode is used; leave empty to use the bot account
|
|
WEBHOOK_URL: "https://discord.com/api/webhooks/1423056957434101850/QOQgLa1Y3TkH2JPOJuLXvh4IO8YXo-hMUVeOErZ4Hcz27uticHY09x9Z1cm-AksDeJ7Z"
|
|
|
|
# Display name/avatar for server-origin messages (webhook mode)
|
|
SERVER_NAME: "TFMC"
|
|
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
|
|
- ./data/logs:/minecraft/logs:ro
|
|
# No port exposure needed in local log tail mode
|
|
|
|
mc:
|
|
image: itzg/minecraft-server
|
|
tty: true
|
|
stdin_open: true
|
|
ports:
|
|
- "25565:25565"
|
|
environment:
|
|
EULA: "TRUE"
|
|
volumes:
|
|
# attach the relative directory 'data' to the container's /data path
|
|
- ./data:/data
|
|
|
|
|