-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml.example
24 lines (22 loc) · 1.31 KB
/
docker-compose.yml.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
version: "3"
services:
server:
image: thijsvanloef/palworld-server-docker:latest
container_name: palworld-server
network_mode: service:watcher # This is important!
# Continue with your own configuration
watcher:
image: dnwjn/palworld-server-watcher:latest
container_name: palworld-watcher
environment:
- CONTAINER_NAME=palworld-server # The name of the server container
- GAME_PORT=8211 # The same value as `PORT` in the server container
- QUERY_PORT=27015 # The same value as `QUERY_PORT` in the server container
- LOOP_SLEEP_SECONDS=30 # How often to check the server status
- CONNECT_GRACE_SECONDS=60 # After starting the server, how long to wait before continuing the loop
- SHUTDOWN_DELAY_SECONDS=300 # How long to wait after the last player leaves to shutdown the server
ports:
- 8211:8211/udp # The same value as `GAME_PORT`
# - 27015:27015/udp # Enable to show up in the server list
volumes:
- /var/run/docker.sock:/var/run/docker.sock # This could be different depending on the operating system