-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
47 lines (41 loc) · 1.14 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
version: "3.7"
services:
paper:
image: ghcr.io/sksat/papermc-docker:1.18.1@sha256:9d6e3d7c2dd513537d79030323c864e190d8ca4d5b6b30b8e451e77daa3e8b3c
restart: always
depends_on:
- db
stdin_open: true
ports:
- 9225:9225
- 25565:25565
- 25575:25575
environment:
JAVA_TOOL_OPTIONS: "-Xms2G -Xmx2G"
volumes:
- ./data:/app
paper-tunnel:
image: crazymax/cloudflared:2022.1.0
restart: always
volumes:
- ./cloudflared:/etc/cloudflared
command: tunnel --hostname mc-tunnel.sksat.net --url tcp://paper:25565 --loglevel info
db:
image: mariadb:10.7.1
command: --default-authentication-plugin=mysql_native_password
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: "mysql-root-password"
MYSQL_DATABASE: "itemcount"
volumes:
- ./iscount_data:/var/lib/mysql
item-count-exporter:
image: githubfree/sql_exporter:0.5
depends_on:
- db
ports:
- "9226:9399"
volumes:
- ./item-count-exporter/sql_exporter.yml:/sql_exporter.yml
- ./item-count-exporter/item_count.collector.yml:/item_count.collector.yml