-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.minimal.yml
More file actions
52 lines (52 loc) · 1.16 KB
/
Copy pathdocker-compose.minimal.yml
File metadata and controls
52 lines (52 loc) · 1.16 KB
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
version: '3.7'
services:
minimal:
image: itzg/minecraft-server
user: ${CURRENT_USER}
restart: always
environment:
JVM_OPTS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"
# enable this once at the beginning to write the database credentials
# keeping this enabled will slow down your server startup
REPLACE_ENV_VARIABLES: "TRUE"
volumes:
- './servers/minimal/server:/data'
- './plugins:/plugins'
env_file:
- sql.secrets.env
- globals.env
- server-properties.env
ports:
- 5005:5005
- 25565:25565
networks:
- minecraft
depends_on:
- db
db:
image: mariadb
user: ${CURRENT_USER}
env_file:
- sql.secrets.env
- mysql.env
networks:
- minecraft
volumes:
- './servers/minimal/database:/var/lib/mysql:Z'
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
PMA_HOST: db
PMA_PORT: 3306
PMA_USER: ${DB_USER:-minecraft}
env_file:
- sql.secrets.env
networks:
- minecraft
depends_on:
- db
ports:
- 8080:80
networks:
minecraft:
driver: bridge