mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
fix: enable restart of db
This commit is contained in:
1 parent
025553f42a
commit
07ec58e41c
2 files changed
+7
-6
No files matched your search
@@ -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`.
|
||||
|
||||
@@ -74,6 +74,7 @@ services:
|
||||
|
||||
db:
|
||||
image: mongo
|
||||
restart: always
|
||||
networks:
|
||||
- internal
|
||||
ports:
|
||||
|
||||
Reference in new issue
Block a user