-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
34 lines (33 loc) · 1.21 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
version: '2.4'
services:
mcstatus-httpd:
#build:
# context: ./
# dockerfile: Dockerfile
image: ghcr.io/tob1as/mcstatus-httpd:latest
container_name: mcstatus-httpd
restart: unless-stopped
ports:
- 8080:8080/tcp
#volumes:
# - ./mcstatus-httpd.py:/service/mcstatus-httpd.py:rw
# #- ./ssl/ssl.crt:/service/ssl.crt:ro
# #- ./ssl/ssl.crt:/service/ssl.key:ro
environment:
TZ: Europe/Berlin
MINECRAFT_JAVA_SERVER: minecraft
MINECRAFT_JAVA_SERVER_PORT: 25565
#MINECRAFT_JAVA_SERVER_PORT_QUERY: 25565 # set, if UDP is not equal to TCP port
#MINECRAFT_JAVA_SERVER_OVERWRITE: minecraft.example.com
MINECRAFT_BEDROCK_SERVER: minecraft-bedrock
MINECRAFT_BEDROCK_SERVER_PORT: 19132
#MINECRAFT_BEDROCK_SERVER_OVERWRITE: minecraft-bedrock.example.com
#entrypoint: [ "/bin/sh", "-c", "--" ]
#command: [ "while true; do sleep 60; done;" ]
healthcheck:
test: wget --quiet --tries=1 --spider http://localhost:8080/healthcheck || exit 1
#test: wget --quiet --tries=1 --spider --no-check-certificate https://localhost:8443/healthcheck || exit 1
#start_period: 10s
interval: 120s
timeout: 3s
retries: 3