fix: enable restart of db

This commit is contained in:
wancat committed 2024-02-23 15:06:01 +08:00
1 parent 025553f42a
commit 07ec58e41c
2 files changed
+7 -6

No files matched your search

+6 -6
View File
@@ -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`.
+1
View File
@@ -74,6 +74,7 @@ services:
db:
image: mongo
restart: always
networks:
- internal
ports: