From 8076293d98fb8a80db9d9311ea745ef5c5599f69 Mon Sep 17 00:00:00 2001 From: Mohammad Ranjbar Z Date: Sun, 8 May 2022 17:57:42 +0430 Subject: [PATCH] Add redis container to staging docker-compose --- README.md | 2 +- docker-compose-staging.yml | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8ed6121..2340799 100644 --- a/README.md +++ b/README.md @@ -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: **test-admin@giveth.io** password: **12345** +* If you ran migrations successfully then you are able to login in [Admin panel](http:localhost:3040/admin) username: **test-admin@giveth.io** 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) diff --git a/docker-compose-staging.yml b/docker-compose-staging.yml index 61489d5..88e2118 100644 --- a/docker-compose-staging.yml +++ b/docker-compose-staging.yml @@ -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: