Skip to content

Commit

Permalink
Add redis container to staging docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadranjbarz committed May 8, 2022
1 parent 676a5a6 commit 8076293
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ API Give is a project that provide open API for third parties to can work with h
* Run [Migrations](#Migrations)
* `npm start`
* Now you can browse [Swagger](http:localhost:3040/docs)
* You can login in [Admin panel](http:localhost:3040/admin) username: **[email protected]** password: **12345**
* If you ran migrations successfully then you are able to login in [Admin panel](http:localhost:3040/admin) username: **[email protected]** password: **12345**

### Test
You should have a postgress instance up in order to running tests so you can use [Local DB docker-compose](./docker-compose-local-postgres-redis.ym)
Expand Down
15 changes: 15 additions & 0 deletions docker-compose-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,18 @@ services:
target: /usr/src/app/dist/logs
ports:
- "3040:3040"



redis-apigive:
# it's better to not using latest tag, maybe latest tag have some breaking changes
image: bitnami/redis:5.0.9-debian-10-r142
container_name: redis-apigive
environment:
- ALLOW_EMPTY_PASSWORD=yes
restart: always
volumes:
- redis-apigive-data:/bitnami/redis/data

volumes:
redis-apigive-data:

0 comments on commit 8076293

Please sign in to comment.