2022-06-25 17:51:52 +00:00
|
|
|
services:
|
|
|
|
server1:
|
|
|
|
build:
|
|
|
|
context: ..
|
|
|
|
dockerfile: .docker/server/Dockerfile
|
|
|
|
volumes:
|
|
|
|
- dockermc:/mcserver
|
|
|
|
environment:
|
|
|
|
- MC_SERVER=server1
|
|
|
|
image: dockermc-server
|
|
|
|
networks:
|
2022-07-03 22:00:04 +00:00
|
|
|
dockermc:
|
2022-06-25 17:51:52 +00:00
|
|
|
aliases:
|
|
|
|
- server1
|
|
|
|
container_name: mc-server1
|
|
|
|
server2:
|
|
|
|
build:
|
|
|
|
context: ..
|
|
|
|
dockerfile: .docker/server/Dockerfile
|
|
|
|
volumes:
|
|
|
|
- dockermc:/mcserver
|
|
|
|
environment:
|
|
|
|
- MC_SERVER=server2
|
|
|
|
image: dockermc-server
|
|
|
|
networks:
|
2022-07-03 22:00:04 +00:00
|
|
|
dockermc:
|
2022-06-25 17:51:52 +00:00
|
|
|
aliases:
|
|
|
|
- server2
|
|
|
|
container_name: mc-server2
|
|
|
|
volumes:
|
|
|
|
dockermc:
|
|
|
|
name: dockermc
|
2022-07-03 22:00:04 +00:00
|
|
|
external: true # Created by the outer Compose file
|
|
|
|
networks:
|
|
|
|
dockermc:
|
|
|
|
name: dockermc
|
|
|
|
driver: bridge
|