Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Improve upgrade guide (#780)

Thomas Kaul3d21e2eac698
diff --git a/README.md b/README.md
index 17cb0738a0..dbb0478613 100644
--- a/README.md
+++ b/README.md
@@ -122,13 +122,11 @@ Open http://localhost:3333 in your browser and accomplish these steps:
1. Go to the _Admin Control Panel_ and click _Gather All Data_ to fetch historical data
1. Click _Sign out_ and check out the _Live Demo_
-### Migrate Database
+### Upgrade Version
-With the following command you can keep your database schema in sync after a Ghostfolio version update:
-
-```bash
-docker-compose -f docker/docker-compose-build-local.yml exec ghostfolio yarn database:migrate
-```
+1. Increase the version of the `ghostfolio/ghostfolio` Docker image in `docker/docker-compose.yml`
+1. Run the following command to start the new Docker image: `docker-compose -f docker/docker-compose.yml up -d`
+1. Then, run the following command to keep your database schema in sync: `docker-compose -f docker/docker-compose.yml exec ghostfolio yarn database:migrate`
## Development
@@ -164,6 +162,14 @@ Run `yarn start:client`
Run `yarn start:storybook`
+### Migrate Database
+
+With the following command you can keep your database schema in sync:
+
+```bash
+yarn database:push
+```
+
## Testing
Run `yarn test`
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index 7c260f3cd2..7afd19a195 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -1,7 +1,7 @@
version: '3.7'
services:
ghostfolio:
- image: ghostfolio/ghostfolio
+ image: ghostfolio/ghostfolio:latest
env_file:
- ../.env
environment: