version: '3.7' services: mc_srv: restart: unless-stopped build: context: . dockerfile: Dockerfile ports: - 25565:25565 volumes: - ${PWD}:/mc-server working_dir: "/mc-server" entrypoint: ["sh", "/mc-server/scripts/init.sh"]