DockerMC/.docker/docker-compose.server.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

37 lines
749 B
YAML

services:
server1:
build:
context: ..
dockerfile: .docker/server/Dockerfile
volumes:
- dockermc:/mcserver
environment:
- MC_SERVER=server1
image: dockermc-server
networks:
dockermc:
aliases:
- server1
container_name: mc-server1
server2:
build:
context: ..
dockerfile: .docker/server/Dockerfile
volumes:
- dockermc:/mcserver
environment:
- MC_SERVER=server2
image: dockermc-server
networks:
dockermc:
aliases:
- server2
container_name: mc-server2
volumes:
dockermc:
name: dockermc
external: true # Created by the outer Compose file
networks:
dockermc:
name: dockermc
driver: bridge