forked from PowerNukkit/PowerNukkit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
74 lines (70 loc) · 3.38 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#
# _____ ____ ___ ___ _____ ______ __ _ __ __ __ ___ __ ___ _____ ________
# ( __ \ / __ \ ( ( ) ) / ___/ ( __ \ / \ / ) ) ) ( ( () ) / __) () ) / __) (_ _) (___ ___)
# ) )_) ) / / \ \ \ \ _ / / ( (__ ) (__) ) / /\ \ / / ( ( ) ) ( (_/ / ( (_/ / | | ) )
# ( ___/ ( () () ) \ \/ \/ / ) __) ( __/ ) ) ) ) ) ) ) ) ( ( () ( () ( | | ( (
# ) ) ( () () ) ) _ ( ( ( ) \ \ _ ( ( ( ( ( ( ( ( ) ) () /\ \ () /\ \ | | ) )
# ( ( \ \__/ / \ ( ) / \ \___ ( ( \ \_)) / / \ \/ / ) \__/ ( ( ( \ \ ( ( \ \ _| |__ ( (
# /__\ \____/ \_/ \_/ \____\ )_) \__/ (_/ \__/ \______/ ()_) \_\ ()_) \_\ /_____( /__\
#
#
# To execute the server using docker:
#
# The first time: (it creates a docker container named powernukkit, this command works only once)
# docker-compose run --name powernukkit server
#
# You may change the name if you want to run multiple instances. Keep the server at the end, it's not part of the name.
# If you change the name, replace powernukkit from the commands below with the name that you have choosen
#
# To return to the terminal and keep the server running:
# Keep holding CTRL, press P, release P, press Q, release Q, and release CTRL
# This is called escape sequence.
#
# After running the command above you can run the other commands from anywhere, you don't need to be inside your server folder.
#
# If you need help, send us a message at https://discuss.powernukkit.org or chat with at https://powernukkit.org/discord
#
#################################################################################################################################
#
# Starting interactively (CTRL+C will stop it, use the escape sequence to detach without stopping it)
# docker start powernukkit -i
#
# Starting seeing the log (CTRL+C will not stop it but you won't be able to run commands)
# docker start powernukkit -a
#
# Starting in the background
# docker start powernukkit
#
# Opening the server console which were running in background: (you won't see previous log messages, just start typing commands)
# docker attach powernukkit
#
# Stopping the server that is running in background:
# docker stop powernukkit
#
# To remove the container that you have created (the data folder will not be deleted, it must be stopped)
# docker rm powernukkit
#
# To update, remove the container, change the image version below and run the first time command again.
#
#################################################################################################################################
version: '3'
services:
server:
#
# You may change the version as you desire
# The version list: https://hub.docker.com/r/powernukkit/powernukkit/tags
image: powernukkit/powernukkit:1.6
#
# If you want to use an other port, change only the number before ":", keep the :19132 and :19132/udp at the end
ports:
- '19132:19132'
- '19132:19132/udp'
#
# You may change the server location by changing the path before the ":", keep the :/data at the end.
# You will have to move the data to the new location yourself
volumes:
- ./powernukkit-data:/data
#
# Do not change this
tty: true
stdin_open: true