Install
GarageStack runs in Docker on any 64-bit machine: a PC, a NAS, a home server or a Raspberry Pi 4 or 5.
Before you start
-
A 64-bit host,
linux/amd64orlinux/arm64. 32-bit ARM is not supported. - Docker 23.0 or later, or Podman with Docker Compose compatibility.
- An MG iSmart account with your car already linked in the official app.
- Outbound internet access, for the MG servers and the map services.
One session per MG account. Signing in anywhere else with the same account, the official MG app included, signs GarageStack out. GarageStack also needs the owner account, so give the MG app a secondary account instead:
- In the MG app, open Settings > Account management > Add secondary account.
- Invite a second email address and accept the invite on that account.
- Give the secondary account access to your car.
- Use the secondary account in the MG app, and the owner account in GarageStack.
Option A One container
A single image with everything inside: the web app, PostgreSQL, the MQTT broker and the SAIC gateway. The easiest way to start, and ideal for a NAS.
docker run -d \
--name garagestack \
-p 8080:80 \
-v ./garagestack-data:/data \
-e SAIC_USER=your@email.com \
-e SAIC_PASSWORD=yourpassword \
-e SAIC_REGION=eu \
-e CORS_ORIGIN=http://192.168.1.100:8080 \
ghcr.io/joszz/garagestack:latest
-
SAIC_REGIONiseu,au,trorbr.CORS_ORIGINis the address you open in your browser. -
Open port 8080 and sign in with your MG login, or set
AUTH_USERNAMEandAUTH_PASSWORD, or single sign-on. - The database password is made for you on the first start and kept in the data folder.
-
latestis the newest release. Pin a version such as0.25.0to choose when you update.
Option B Docker Compose
Separate containers for each part, so they update on their own and you can use your own PostgreSQL server. Needs Docker Compose 2.20 or later.
-
Get the compose file
git clone https://github.com/joszz/garagestack.git cd garagestack cp .env.example .env -
Fill in
.envSAIC_USER,SAIC_PASSWORD- Your MG iSmart login.
SAIC_REGION-
eu(the default),au,trorbr. CORS_ORIGIN-
The address you open in your browser, such as
http://192.168.1.100:8080. POSTGRES_PASSWORD,MQTT_BROKER_PASSWORD- Make each with
openssl rand -hex 32.
-
Start it
docker compose --profile bundled-postgres up -dWith your own PostgreSQL server, set the
POSTGRES_*settings in.envand rundocker compose up -d. The app is on port 8080.
Unraid
Find GarageStack in Community Apps and fill in the settings in the template. It runs the all-in-one image, with its data in one folder. The all-in-one image and Unraid
After installing
- HTTPS Needed for push notifications and installing it as an app. Reverse proxy examples included.
- Push notifications Make a pair of VAPID keys, and choose per device what to hear about.
- Updating Pull the new image. The app tells you when a new release is out.
- Backups What to keep, and how to back it up and restore it.