-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (35 loc) · 889 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (35 loc) · 889 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
34
35
36
services:
tml:
image: tmodloader
container_name: tml
build:
context: .
args:
TML_VERSION: ${TML_VERSION:-v2025.10.3.1}
restart: unless-stopped
#user: "1001:1001"
ports:
- "7777:7777"
volumes:
- .:/app/data
command: ["./start-tModLoaderServer.sh", "-savedirectory", "/app/data", "-config", "/app/data/serverconfig.txt"]
stdin_open: true
tty: true
backup:
image: alpine:latest
container_name: tml_backup
restart: unless-stopped
volumes:
- .:/app/data
environment:
- TZ=Europe/Prague
command: >
/bin/sh -c "
cp /app/data/crontab /var/spool/cron/crontabs/root &&
chown root:root /var/spool/cron/crontabs/root &&
chmod 600 /var/spool/cron/crontabs/root &&
echo 'Starting Cron...' &&
exec crond -f -d 8
"
stdin_open: true
tty: true