docker-compose.yaml 482 B

123456789101112131415161718192021
  1. version: '3'
  2. services:
  3. minecraft:
  4. build: .
  5. context:
  6. args:
  7. JAR: https://launcher.mojang.com/v1/objects/bb2b6b1aefcd70dfd1892149ac3a215f6c636b07/server.jar
  8. image: mc_java_vanilla:alpine-1.15.2
  9. container_name: mc_java
  10. restart: on-failure
  11. ports:
  12. - "8008:25565"
  13. volumes:
  14. - "./worlds:/opt/worlds"
  15. - "./config:/opt/config"
  16. logging:
  17. driver: "json-file"
  18. options:
  19. max-size: "200k"
  20. max-file: "1"