forked from lythx/trakman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
81 lines (79 loc) · 2.4 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: "3.0"
services:
trakman:
image: borecek/trakman-fork:main
container_name: trakman-server
restart: unless-stopped
volumes:
- ./tmf-config:/app/server/GameData/Config
- ./tracks:/app/server/GameData/Tracks
- ./trakman:/app/server/trakman
- ./logs:/app/server/.pm2/logs
environment:
# Timezone of the server, if you're unsure, check https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TZ: "Europe/Amsterdam"
# Dedicated server config
SERVER_IP: 127.0.0.1
SERVER_PORT: 5000
SUPER_ADMIN_NAME: "SuperAdmin"
SUPER_ADMIN_PASSWORD: ""
SERVER_ACC_LOGIN: ""
SERVER_ACC_PASSWORD: ""
SERVER_ACC_KEY: ""
SERVER_NAME: "Docker Trakman Server"
SERVER_PASSWORD: ""
SERVER_NET_PORT: 2350
SERVER_P2P_PORT: 3450
# Database config - preconfigured for included database
DB_USER: "trakman"
DB_PASSWORD: "trakman"
DB_NAME: "trakman"
DB_IP: "trakman-db"
DB_PORT: 5432
# Controller config
OWNER_LOGIN: ""
# Dedimania
# This is either server password or playerpage community code
DEDIMANIA_PASSWORD: ""
# Freezone
# Received on 'freezone:servers' manialink in-game
FREEZONE_PASSWORD: ""
# Webservices
WEBSERVICES_LOGIN: ""
WEBSERVICES_PASSWORD: ""
# Logging
LOG_LEVEL: 3
DISCORD_LOG_ENABLED: "NO"
DISCORD_LOG_LEVEL: 2
DISCORD_WEBHOOK_URL: ""
DISCORD_EMBED_IMAGES: ""
DISCORD_EMBED_TITLE: ""
DISCORD_EMBED_TITLE_URL: ""
DISCORD_EMBED_TITLE_ICON_URL: ""
DISCORD_TAGGED_USERS: ""
ports: # Don't forget to change the ports
# if you already have another server running
# **The ports MUST match** because of the way the server works
- "2350:2350/tcp"
- "2350:2350/udp"
- "3450:3450/tcp"
- "3450:3450/udp"
# Remove everything below if you already have a database
depends_on:
trakman-db:
condition: service_started
trakman-db:
image: postgres:16-alpine
restart: unless-stopped
volumes:
- ./db:/data/postgres
environment:
POSTGRES_USER: "trakman"
POSTGRES_PASSWORD: "trakman"
PGDATA: /data/postgres
POSTGRES_DB: "trakman"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U trakman -d postgres" ]
interval: 30s
timeout: 10s
retries: 5