-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (29 loc) · 834 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
30 lines (29 loc) · 834 Bytes
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
services:
mc:
container_name: mc
image: itzg/minecraft-server:java17
# restart: unless-stopped
volumes:
# use a named, managed volume for data volume
- ./server:/data
# attach local host directory "mods" in same directory as this compose file
# all mods in this directory get copied into /data/mods at startup
- ./mods:/mods:ro
env_file: .env
ports:
# expose the Minecraft server port outside of container
- 25565:25565
- 25575:25575
backup:
container_name: mc_backup
image: quay.io/spesnova/dockup:latest
stop_signal: SIGTERM
volumes:
- ./server:/server/server-data
env_file: .env
# restore:
# image: quay.io/spesnova/dockup:latest
# command: restore
# volumes:
# - ./server:/server/server-data
# env_file: .env