diff --git a/README.md b/README.md index 7cd24ed..fd56c86 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ Run mongoDB first: - docker compose up -d db + docker compose -f docker-compose.dev.yml up -d db -Build up : +The db will automatically restarts by Docker. - yarn build +Build up dependencies: -Run everything (frontend, backend, db, swagger, quests): + yarn build:deps + +Run dev server (frontend, backend): yarn dev If you want to enable social login, you should have OAuth client token in a `.env` file: - docker compose --env-file .env up -d - ### Build Quest Images In each quest folder, there is a `game.yml` file, which is the quest definition. And a optional `Dockerfile` to overwrite the base image. If you want to include additional files, put them in a `home` folder. The files in `home` will **not** be copied to the image automatically, you have to copy them in the `Dockerfile`. diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 3c98144..b35aba1 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -74,6 +74,7 @@ services: db: image: mongo + restart: always networks: - internal ports: