-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.main.yml
37 lines (37 loc) · 983 Bytes
/
docker-compose.main.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
version: '3.7'
services:
main:
image: itzg/minecraft-server
command: --world-dir=/data/worlds
user: ${CURRENT_USER}
restart: always
ports:
- ${QUERY_PORT:-25575}:${QUERY_PORT:-25575}/udp
environment:
LEVEL: world
SERVER_NAME: main
CFG_SERVER_NAME: main
MEMORY: ${MEMORY:-8G}
CFG_SERVER_NAME: Main
volumes:
- ./servers/main:/data:z
- ./schematics:/data/plugins/WorldEdit/schematics:z
- ./dynmap/main:/data/plugins/dynmap/web:z
- ./plugins:/plugins:ro
- ./configs/main:/config:ro
- /etc/timezone:/etc/timezone:ro
labels:
restic-compose-backup.minecraft: true
restic-compose-backup.tags: minecraft,main,${ENVIRONMENT}
restic-compose-backup.volumes.include: "servers/main"
env_file:
- sql.secrets.env
- globals.env
- server-properties.env
depends_on:
- db
networks:
- minecraft
networks:
minecraft:
driver: bridge