50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
shulker:
|
|
image: gitea.taginu.com/marc/tfmc-website:latest
|
|
container_name: shulker
|
|
restart: unless-stopped
|
|
# Configure everything inline here; no .env file required
|
|
environment:
|
|
# Discord configuration (fill these)
|
|
DISCORD_TOKEN: "REPLACE_ME"
|
|
DISCORD_CHANNEL_ID: ""
|
|
# 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: "Shulker"
|
|
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:
|
|
# Persist config.json in a named volume
|
|
- shulker_data:/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
|
|
|
|
volumes:
|
|
shulker_data:
|
|
driver: local
|