Skip to content

Commit

Permalink
Fix get transactions from redis
Browse files Browse the repository at this point in the history
  • Loading branch information
BasileusErwin committed May 11, 2023
1 parent 585eaf5 commit bfab69e
Show file tree
Hide file tree
Showing 3 changed files with 5,065 additions and 25 deletions.
50 changes: 25 additions & 25 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
version: "3.9"

services:
expenses:
build: .
command: sh -c "yarn dev"
container_name: expenses-backend
depends_on:
- postgres
- redis
env_file: ./.env
redis:
image: redis:7.0-alpine
container_name: expenses-redis
restart: always
ports:
- $PORT:$PORT
- 6379:6379
command: redis-server --save 20 1 --loglevel warning
volumes:
- .:/app
working_dir: /app
- ./.redis:/data

postgres:
image: postgres:14-alpine
container_name: expenses-postgres
environment:
POSTGRES_DB: expenses
POSTGRES_PASSWORD: postgres
image: postgres:14-alpine
ports:
- 5432:5432
POSTGRES_DB: expenses
volumes:
- ./.postgres:/var/lib/postgresql/data

redis:
command: redis-server --save 20 1 --loglevel warning
container_name: expenses-redis
image: redis:7.0-alpine
ports:
- 6379:6379
restart: always
volumes:
- ./.redis:/data
- 5432:5432

version: "3.9"
expenses:
build: .
container_name: expenses-backend
working_dir: /app
env_file: ./.env
volumes:
- .:/app
ports:
- $PORT:$PORT
depends_on:
- postgres
- redis
command: sh -c "yarn install && yarn dev"
Loading

0 comments on commit bfab69e

Please sign in to comment.