DockerMC/.docker/docker-compose.yml
NorbiPeti 453720ddde
Download latest Paper build for the given MC version and start server in Docker
It took a while to properly mount the folder to both containers
Might be a bit overcomplicated but whatever
At the moment it creates the volume at /mcserver on the host
2022-06-25 19:51:52 +02:00

26 lines
569 B
YAML

services:
runner:
build:
context: ..
dockerfile: .docker/runner/Dockerfile
target: dev
args:
- DGID=${DGID}
image: dockermc
environment:
- MC_VERSION=1.19
- DGID=${DGID}
volumes:
- ../src:/src
- dockermc:/mcserver
- ./docker-compose.server.yml:/docker-compose.server.yml
- /var/run/docker.sock:/var/run/docker.sock
container_name: dockermc-runner
volumes:
dockermc:
name: dockermc
driver: local
driver_opts:
type: none
o: bind
device: ../mcserver