-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
63 lines (61 loc) · 2.67 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# You can freely choose which server to run. They don't depend on one another.
# This file gives an example config for both games.
services:
ets2-server:
image: lshallo/ets2-convoy-server
# image: ghcr.io/lshallo/ets2-convoy-server # GitHub container registry
container_name: ets2-server
restart: unless-stopped
tty: true
network_mode: host # important to make game appear in server list
# if you want to join via direct join token (displayed in logs on startup) you can use port mapping
# the game will not appear in server list because the server can't determine the external IP
#ports:
# - "27015:27015"
# - "27016:27016"
# - "27015:27015/udp"
# - "27016:27016/udp"
# volumes:
# Server files. (executable, libraries)
# Only mount if you know what you are doing. Can lead to permissions issues.
# - "/opt/ets2-server/game-data:/app"
# Only needed when using custom server_packages.sii and server_packages.dat.
# Also keeps banlist. If you want to persist the banlist mount this folder.
# - "/opt/ets2-server/save-data:/home/steam/.local/share/Euro Truck Simulator 2"
environment:
- "ETS_SERVER_UPDATE_ON_START=true"
- "ETS_SERVER_NAME=My Server"
- "ETS_SERVER_DESCRIPTION=My server description"
- "ETS_SERVER_WELCOME_MESSAGE=Welcome to my server!"
- "ETS_SERVER_PASSWORD=abc123"
- "ETS_SERVER_MAX_PLAYERS=8"
- "ETS_SERVER_PORT=27015"
- "ETS_SERVER_QUERY_PORT=27016"
# more variables...
ats-server:
image: lshallo/ats-convoy-server
# image: ghcr.io/lshallo/ats-convoy-server # GitHub container registry
container_name: ats-server
restart: unless-stopped
tty: true
network_mode: host # important to make game appear in server list
# if you want to join via direct join token (displayed in logs on startup) you can use port mapping
# the game will not appear in server list because the server can't determine the external IP
#ports:
# - "27015:27015"
# - "27016:27016"
# - "27015:27015/udp"
# - "27016:27016/udp"
# volumes:
# - "/opt/ats-server/game-data:/app" # server files
# - "/opt/ats-server/save-data:/home/steam/.local/share/American Truck Simulator" # Only needed when using custom server_packages.sii and server_packages.dat
environment:
- "ETS_SERVER_UPDATE_ON_START=true"
- "ETS_SERVER_NAME=My Server"
- "ETS_SERVER_DESCRIPTION=My server description"
- "ETS_SERVER_WELCOME_MESSAGE=Welcome to my server!"
- "ETS_SERVER_PASSWORD=abc123"
- "ETS_SERVER_MAX_PLAYERS=8"
- "ETS_SERVER_PORT=27015"
- "ETS_SERVER_QUERY_PORT=27016"
# more variables...