Skip to content

Commit 8b4b602

Browse files
authored
Add Autoheal and avatarfile loading. (#96)
1 parent 979438b commit 8b4b602

1 file changed

Lines changed: 20 additions & 3 deletions

File tree

content/docs/server/headless.mdx

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ Make a folder for the `docker-compose.yml` and copy the example below.
6565
Start a Command Prompt or Powershell in that directory. When using file explorer you can launch Command Prompt by typing `cmd.exe` in the url bar or explorer.
6666
</Step>
6767
<Step>
68+
First download/update the docker images with `docker compose pull`
69+
</Step>
70+
<Step>
6871
Type the command `docker compose up -d` to start the containers
6972
</Step>
7073
<Step>
@@ -101,19 +104,31 @@ services:
101104
Password: default_password
102105
Ip: 'server1.basisvr.org'
103106
HealthCheckEnabled: "true"
104-
HealthCheckHost: "0.0.0.0"
107+
HealthCheckHost: "127.0.0.1"
105108
HealthCheckPort: 10666
106109
HealthPath: "/health"
110+
AvatarFileLocation: ""
111+
AvatarPassword: ""
107112
volumes:
108113
- ./Basis:/root/.config/unity3d/Basis Unity/Basis Unity # For Sharing Cached files. Optional not required
109-
- "${APPDATA}/../LocalLow/Basis Unity/Basis Unity:/root/.config/unity3d/Basis Unity/Basis Unity" #If you want to use your own cache and avatar files. *Corruption possible
114+
- "${APPDATA}/../LocalLow/Basis Unity/Basis Unity:/root/.config/unity3d/Basis Unity/Basis Unity" # If you want to use your own cache and avatar files. *Corruption possible
110115
- ./config.xml:/app/HeadlessLinuxServer_Data/config.xml # Optional will be overridden when using environment variables
111116
healthcheck:
112-
test: ["CMD-SHELL","bash -lc 'exec 3<>/dev/tcp/127.0.0.1/10666 && printf \"GET /health HTTP/1.1\r\nHost: localhost\r\nConnection: close\r\n\r\n\" >&3 && grep -q \"200\" <&3`"]
117+
test: ["CMD", "curl", "-fsS", "http://127.0.0.1:10666/health"]
113118
interval: 30s
114119
timeout: 5s
115120
retries: 3
116121
start_period: 20s
122+
labels:
123+
autoheal-app: true
124+
autoheal:
125+
image: willfarrell/autoheal:latest
126+
network_mode: none
127+
restart: always
128+
environment:
129+
AUTOHEAL_CONTAINER_LABEL: autoheal-app
130+
volumes:
131+
- /var/run/docker.sock:/var/run/docker.sock
117132
```
118133
119134
## What the Settings Mean
@@ -129,6 +144,8 @@ The examples above use the minimum values needed to connect:
129144
| `HealthCheckHost` | Ip Endpoint listens on |
130145
| `HealthCheckPort` | Port Endpoint listens on |
131146
| `HealthPath` | Path for Health info |
147+
| `AvatarFileLocation` | Combined URL support of avatar#base64 |
148+
| `AvatarPassword` | Avatar password |
132149

133150
If you mount a `config.xml`, treat it as the file-based fallback configuration. If you also set environment variables, the docs for the main server note that environment values override xml values, so keep one source of truth where possible to avoid confusion during testing.
134151

0 commit comments

Comments
 (0)