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

View File

@ -15,9 +15,13 @@ Forward the following ports to the server.
| terraria | 7777 | | terraria | 7777 |
| wireguard | 51820 | | 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 TODO backup script

View File

@ -6,3 +6,4 @@ services:
- "25565:25565" - "25565:25565"
volumes: volumes:
- ./minecraft/world:/root/world - ./minecraft/world:/root/world
restart: always