You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated script to wait for database and lanuch server in order.
Renamed services so they're more obvious.
Changed the /code directory to /topaz so it's more obvious what it contains.
Updated documentation to reflect changes
Cleaned up new lines at end of file.
I have tested and am able to successfully launch the server create an account and character then log into the game
Copy file name to clipboardExpand all lines: DOCKER.md
+7-6
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@ This guide assumes you have Docker (https://www.docker.com/) installed on your m
5
5
6
6
## How to start the server
7
7
8
+
* Launch docker
8
9
* Pull the repo
9
10
* Open powershell or whatever terminal you're using and navigate to the topaz directory
10
11
* Type `docker-compose up -d` (the `-d` is optional and will free up -detach- the terminal)
@@ -14,18 +15,18 @@ Note the zone IPs are not updated in the DB and will default to 127.0.0.1 so you
14
15
15
16
## How to restart the Server/DB
16
17
17
-
The server runs in the "code" service and the database in the "db" service and will likely be named something like `topaz_code_1` similarly the database will be something like `topaz_db_1`. To see the names assigned to your services type `docker ps`. To restart them you can use the `docker restart` command such as `docker restart topaz_code_1`.
18
+
The server runs in the "game" service and the database in the "db" service and will likely be named something like `topaz_game_1` similarly the database will be something like `topaz_db_1`. To see the names assigned to your services type `docker ps`. To restart them you can use the `docker restart` command such as `docker restart topaz_game_1`.
18
19
19
-
Alternatively you can stop and start individual services with `docker stop conainer_name` and `docker start container_name` where `container_name` is the container name from the `docker ps` command. The run order should be "database" then "code".
20
+
Alternatively you can stop and start individual services with `docker stop conainer_name` and `docker start container_name` where `container_name` is the container name from the `docker ps` command. The run order should be "database" then "game".
20
21
21
22
## Connect to server terminal
22
23
23
-
If you need to access the terminal on the server you can enter `docker exe -it topaz_code_1 sh` where `topaz_code_1` is the container name from the `docker ps` command. To exit type `exit`.
24
+
If you need to access the terminal on the server you can enter `docker exe -it topaz_game_1 sh` where `topaz_game_1` is the container name from the `docker ps` command. To exit type `exit`.
24
25
25
26
## Transfer files to server from local machine
26
27
27
-
If you need to transfer files from your local machine to the server you can use the `docker cp` command. All code on the server exists in the `/code` directory. See below for example.
28
+
If you need to transfer files from your local machine to the server you can use the `docker cp` command. All code on the server exists in the `/topaz` directory. See below for example.
28
29
This is useful for things like updating and testing the lua scripts without needing to restart the server.
29
30
30
-
Example copying godmode.lua script from local machine to server (where server name is `topaz_code_1`):
0 commit comments