Update docker container architecture to prevent data loss
This commit is contained in:
parent
bb755a9c00
commit
410514a470
10
Dockerfile
10
Dockerfile
@ -1,10 +0,0 @@
|
||||
FROM openjdk:8u212-jre-alpine
|
||||
|
||||
EXPOSE 25565
|
||||
EXPOSE 25575
|
||||
|
||||
WORKDIR /mc-server
|
||||
|
||||
COPY . /mc-server
|
||||
RUN chmod +x /mc-server/scripts/start.sh
|
||||
CMD ["/bin/sh", "-c", "./scripts/start.sh"]
|
@ -3,12 +3,11 @@ version: '3.7'
|
||||
services:
|
||||
mc_srv:
|
||||
restart: unless-stopped
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: openjdk:16-alpine
|
||||
ports:
|
||||
- 25565:25565
|
||||
- 25575:25575
|
||||
- 25566:25565
|
||||
volumes:
|
||||
- ${PWD}/world:/mc-server/world
|
||||
- ${PWD}:/mc-server
|
||||
working_dir: "/mc-server"
|
||||
entrypoint: ["sh", "/mc-server/scripts/start.sh"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user