forked from LittleBigRefresh/Refresh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (33 loc) · 998 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (33 loc) · 998 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
31
32
33
services:
gameserver:
image: refresh:latest
container_name: refresh-gameserver
build: .
restart: unless-stopped
ports:
- "10061:10061"
environment:
BUNKUM_DATA_FOLDER: /refresh/data
healthcheck:
# Fails if the /_health endpoint contains 'Unhealthy'
test: ["CMD", "bash", "-c", "export UNHEALTHY=$(curl http://localhost:10061/_health --silent | grep -i Unhealthy); if [ '$UNHEALTHY' != '' ]; then exit 1; else exit 0; fi"]
timeout: 3s
interval: 5s
retries: 5
volumes:
- "./data/gameserver:/refresh/data:z"
presenceserver:
image: refresh-presenceserver:latest
container_name: refresh-presenceserver
build:
context: .
dockerfile: PresenceServer.Dockerfile
restart: unless-stopped
ports:
- "10072:10072"
- "10061:10061"
environment:
BUNKUM_DATA_FOLDER: /refresh/data
volumes:
- "./data/presenceserver:/refresh/data:z"
profiles: ["optional-services"]