Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
arnidan committed Dec 27, 2023
1 parent 00cdd71 commit bfe5a1e
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,45 @@ It allows you to optimize the limit of daily requests, with preventive checks, s
$ npm install
```

#### Docker Compose

You can use docker compose config below to start the app with mongodb

<details>
<summary>docker-compose.yaml example</summary>

```yaml
version: "3.8"

services:
app:
image: ghcr.io/m3m3nto/giaa:latest
depends_on:
- mongodb
restart: unless-stopped
ports:
- 3000:3000
environment:
- DB_URL=mongodb://giaa:giaa@mongodb/giaa
volumes:
- ./cids:/app/config/cids

mongodb:
image: mongo:5.0.2
restart: unless-stopped
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=admin
- MONGO_INITDB_DATABASE=giaa
volumes:
- db:/data/db
- ./init-mongo.js:/docker-entrypoint-initdb.d/mongo-init.js:ro

volumes:
db:
```
</details>
#### Windows
- node installation: https://nodejs.org/en/download/
- mongodb installation: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/#install-mdb-edition
Expand All @@ -45,6 +84,12 @@ Within project dir:
$ npm start
```

#### Docker Compose
Within docker-compose.yaml dir:
```sh
$ docker compose up
```

#### Windows
Within project dir:
```sh
Expand Down

0 comments on commit bfe5a1e

Please sign in to comment.