docker-compose.yaml 471 B

123456789101112131415161718192021222324
  1. version: '3'
  2. services:
  3. minecraft:
  4. build:
  5. context: .
  6. args:
  7. VERSION: 1.18.1
  8. image: tarfeef101/mc_java_vanilla:alpine-1.18.1
  9. container_name: mc_java
  10. restart: on-failure
  11. environment:
  12. MIN_MEM: 512m
  13. MAX_MEM: 2048m
  14. ports:
  15. - "8008:25565"
  16. volumes:
  17. - "./worlds:/opt/worlds"
  18. - "./config:/opt/config"
  19. logging:
  20. driver: "json-file"
  21. options:
  22. max-size: "200k"
  23. max-file: "1"