DockerMC/.docker/docker-compose.yml
NorbiPeti 3d81bd3700
Implement server start-stop logic, fix issues
- Fixed the volume being at /mcserver on host using the .env file
2022-07-04 00:00:04 +02:00

34 lines
697 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
networks:
dockermc:
aliases:
- runner
volumes:
dockermc:
name: dockermc
driver: local
driver_opts:
type: none
o: bind
device: $PWD/mcserver
networks:
dockermc:
name: dockermc
driver: bridge