Skip to content

Commit

Permalink
Add tshock examples with default environment variables in README.md
Browse files Browse the repository at this point in the history
Respectively, add missing default environment variables for Docker
Compose files and examples.
  • Loading branch information
victorpopkov committed Mar 20, 2024
1 parent 5bc71c1 commit c20d513
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -578,18 +578,39 @@ single `/data/` directory, as for now, we don't override them by default.
$ docker run --rm -it -v "$(pwd):/data/" -p 7777:7777 dstmodders/terraria-server:tshock
```

<details>
<summary><b>The same, but with default environment variables</b></summary>
<p><pre>$ docker run --rm -it -v "$(pwd):/data/" -p 7777:7777 \
-e TZ=UTC \
dstmodders/terraria-server:tshock</pre></p>
</details>

##### CMD (Windows)

```cmd
> docker run --rm -it -v "%CD%:/data/" -p 7777:7777 dstmodders/terraria-server:tshock
```

<details>
<summary><b>The same, but with default environment variables</b></summary>
<p><pre>> docker run --rm -it -v "%CD%:/data/" -p 7777:7777 ^
-e TZ=UTC ^
dstmodders/terraria-server:tshock</pre></p>
</details>

##### PowerShell (Windows)

```powershell
PS:\> docker run --rm -it -v "${PWD}:/data/" -p 7777:7777 dstmodders/terraria-server:tshock
```

<details>
<summary><b>The same, but with default environment variables</b></summary>
<p><pre>PS:\> docker run --rm -it -v "${PWD}:/data/" -p 7777:7777 `
-e TZ=UTC `
dstmodders/terraria-server:tshock</pre></p>
</details>

#### Docker Compose (tshock)

```yaml
Expand All @@ -605,6 +626,8 @@ services:
- '7878:7878' # REST API
volumes:
- './data/:/data/:rw'
environment:
TZ: UTC
```

## Supported environment variables
Expand Down
2 changes: 2 additions & 0 deletions tshock/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ services:
- '7878:7878' # REST API
volumes:
- './data/:/data/:rw'
environment:
TZ: UTC

0 comments on commit c20d513

Please sign in to comment.