Skip to content

Commit

Permalink
Added redis example
Browse files Browse the repository at this point in the history
  • Loading branch information
Andriiklymiuk committed Sep 8, 2023
1 parent d1eb9cd commit 1659d37
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions examples/redis/redis-bun-expo.corgi-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
db_services:
redis-for-bun:
driver: redis
host: localhost
user: best_user_for_this_serivce
password: most_secure_password_ever
port: 2911

services:
expo_redis_listener:
cloneFrom: https://github.com/Andriiklymiuk/expo_redis_listener.git
depends_on_services:
- name: bun_redis_server
envAlias: EXPO_PUBLIC_API_URL
beforeStart:
- yarn install
start:
- yarn ios
afterStart:
- yarn ios:simulator:close
bun_redis_server:
cloneFrom: https://github.com/Andriiklymiuk/bun_redis_server.git
port: 1022
depends_on_db:
- name: redis-for-bun
beforeStart:
- bun install
start:
- bun start

required:
yarn:
why:
- To build and launch some of the repos locally with yarn
install:
- brew install yarn
checkCmd: yarn -v
bun:
why:
- To launch products service locally
install:
- curl -fsSL https://bun.sh/install | bash
checkCmd: bun -v
docker:
why:
- To launch database services
- You need to install it yourself from https://docs.docker.com/desktop/install/mac-install/
checkCmd: docker -v
jq:
why:
- To format server output in nice format
install:
- brew install jq
checkCmd: jq --version

0 comments on commit 1659d37

Please sign in to comment.