mirror of
https://github.com/dragonlock2/matthewtran.com.git
synced 2026-06-28 01:58:34 +00:00
add commands to start on boot
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -6,3 +6,4 @@ services:
|
|||||||
- "25565:25565"
|
- "25565:25565"
|
||||||
volumes:
|
volumes:
|
||||||
- ./minecraft/world:/root/world
|
- ./minecraft/world:/root/world
|
||||||
|
restart: always
|
||||||
|
|||||||
Reference in New Issue
Block a user