-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
35 lines (35 loc) · 1.26 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Ensure your .env file is defined and designated server has been started successfully at least once.
services:
bedrock:
build:
dockerfile: ./Dockerfile-bedrock
ports:
- 19132:19132/udp
- 19133:19133/udp
- 25565:25565/tcp
- 25565:25565/udp
# Server directory env var inside the container will be different.
environment:
SERVER_INSTALL_DIRECTORY: "/craftlink/server/"
# Uncomment this if using image on arm64 arch machine.
#IS_ARM64: "true"
volumes:
- "${SERVER_INSTALL_DIRECTORY}/allowlist.json:/craftlink/server/allowlist.json"
- "${SERVER_INSTALL_DIRECTORY}/permissions.json:/craftlink/server/permissions.json"
- "${SERVER_INSTALL_DIRECTORY}/server.properties:/craftlink/server/server.properties"
- "${SERVER_INSTALL_DIRECTORY}/worlds:/craftlink/server/worlds"
command: craftlink
java:
build:
dockerfile: ./Dockerfile-java
ports:
- 19132:19132/udp
- 19133:19133/udp
- 25565:25565/tcp
- 25565:25565/udp
environment:
SERVER_INSTALL_DIRECTORY: "/craftlink/server/"
# For Java, just mount the entire server directory, no need to download anything.
volumes:
- "${SERVER_INSTALL_DIRECTORY}:/craftlink/server/"
command: craftlink