container-server/minecraft/docker-compose.yml

27 lines
859 B
YAML
Raw Normal View History

2022-06-06 17:13:46 +02:00
version: "3.7"
# https://github.com/MitchTalmadge/AMP-dockerized
# https://github.com/MitchTalmadge/AMP-dockerized/blob/master/example-configs/minecraft/docker-compose.yml
services:
minecraft:
image: mitchtalmadge/amp-dockerized:latest
container_name: minecraft
restart: "${RESTART:-no}"
hostname: minecraft
domainname: ${BASE_DOMAIN}
mac_address: 02:42:AC:D7:11:9C # Please see the README about this field.
expose:
- "8080" # expose amp web ui port for proxy
2022-06-06 17:13:46 +02:00
ports:
- 25565:25565 # For Java Edition (TCP)
2022-06-19 13:18:17 +02:00
- 2223:2223 # AMP FTP
2022-06-06 17:13:46 +02:00
environment:
- TZ=Europe/Berlin # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
2022-06-06 17:13:46 +02:00
- LICENCE=${MINECRAFT_AMP_LICENSE}
- MODULE=Minecraft
volumes:
- ${BASE_DIR:-/srv}/minecraft/ampdata:/home/amp/.ampdata
networks:
- proxy