Skip to content

Commit

Permalink
build(docker): add redis cache
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Oct 4, 2020
1 parent 89e4c0d commit 70face3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ services:
- APP_DB_DSN=host=urlshdb port=5432 user=${POSTGRES_USER:-postgres} password=${POSTGRES_PASSWORD:-postgres} dbname=urlsh sslmode=disable
depends_on:
- urlshdb
- urlshcache

urlshdb:
image: postgres:12.4
Expand All @@ -29,5 +30,13 @@ services:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres}
- POSTGRES_DB=urlsh

urlshcache:
image: redis:alpine
ports:
- 3000:6379
volumes:
- cachedata:/data

volumes:
dbdata:
dbdata: {}
cachedata: {}

0 comments on commit 70face3

Please sign in to comment.