add commands to start on boot

This commit is contained in:
Matthew Tran
2023-09-06 11:37:29 +00:00
parent 2272e874f5
commit 70e1791001
2 changed files with 7 additions and 2 deletions
+6 -2
View File
@@ -15,9 +15,13 @@ Forward the following ports to the server.
| terraria | 7777 |
| wireguard | 51820 |
Run the following commands.
```
docker compose build
apt install docker.io
apt install docker-compose
docker-compose build
docker-compose up -d # auto restarts on reboot!
```
TODO service that runs on boot (and restarts/stops gracefully)
TODO backup script
+1
View File
@@ -6,3 +6,4 @@ services:
- "25565:25565"
volumes:
- ./minecraft/world:/root/world
restart: always