modified: .env.example

modified:   docker-compose.yaml
This commit is contained in:
SimolZimol
2025-12-08 20:53:40 +01:00
parent 7a8330f519
commit 540d261b27
2 changed files with 14 additions and 6 deletions

View File

@@ -2,6 +2,11 @@
# MINECRAFT SERVER KONFIGURATION # MINECRAFT SERVER KONFIGURATION
# ======================================== # ========================================
# ===== Container Name (WICHTIG für mehrere Server!) =====
# Jeder Server braucht einen eigenen Namen!
# Beispiele: minecraft-lobby, minecraft-survival, minecraft-creative
CONTAINER_NAME=minecraft-server
# ===== Server Software ===== # ===== Server Software =====
# Mögliche Werte: PAPER, PURPUR, SPIGOT, FABRIC, FORGE, VANILLA, VELOCITY # Mögliche Werte: PAPER, PURPUR, SPIGOT, FABRIC, FORGE, VANILLA, VELOCITY
SERVER_TYPE=PAPER SERVER_TYPE=PAPER

View File

@@ -3,7 +3,7 @@ version: '3.8'
services: services:
minecraft: minecraft:
image: itzg/minecraft-server:latest image: itzg/minecraft-server:latest
container_name: minecraft-server container_name: ${CONTAINER_NAME:-minecraft-server}
restart: unless-stopped restart: unless-stopped
environment: environment:
@@ -88,17 +88,18 @@ services:
# ===== SFTP SERVER FÜR VOLLZUGRIFF AUF MC SERVER ===== # ===== SFTP SERVER FÜR VOLLZUGRIFF AUF MC SERVER =====
sftp: sftp:
image: atmoz/sftp:latest image: atmoz/sftp:latest
container_name: minecraft-sftp container_name: ${CONTAINER_NAME:-minecraft-server}-sftp
restart: unless-stopped restart: unless-stopped
environment:
SFTP_USERS: ${SFTP_USER:-mcadmin}:${SFTP_PASSWORD:-changeme123}:1000:1000:minecraft
ports: ports:
- "${SFTP_PORT:-2222}:22" - "${SFTP_PORT:-2222}:22"
volumes: volumes:
- minecraft-data:/home/${SFTP_USER:-mcadmin}/minecraft - minecraft-data:/home/mcadmin/minecraft
- sftp-ssh-keys:/home/${SFTP_USER:-mcadmin}/.ssh - sftp-ssh-keys:/home/mcadmin/.ssh
command: ${SFTP_USER:-mcadmin}:${SFTP_PASSWORD:-changeme123}:1000:1000:minecraft
networks: networks:
- minecraft-network - minecraft-network
@@ -111,10 +112,12 @@ services:
volumes: volumes:
minecraft-data: minecraft-data:
name: ${CONTAINER_NAME:-minecraft-server}-data
driver: local driver: local
labels: labels:
- "coolify.managed=true" - "coolify.managed=true"
sftp-ssh-keys: sftp-ssh-keys:
name: ${CONTAINER_NAME:-minecraft-server}-ssh
driver: local driver: local
labels: labels:
- "coolify.managed=true" - "coolify.managed=true"