docker-compose.yaml 485 B

12345678910111213141516171819202122
  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. logging:
  16. driver: "json-file"
  17. options:
  18. max-size: "200k"
  19. max-file: "1"
  20. - "./config:/opt/config"