Skip to content

Commit

Permalink
Merge pull request #239 from COS301-SE-2024/feature/cache-redis-setup
Browse files Browse the repository at this point in the history
Feature/cache redis setup
  • Loading branch information
CaitMS authored Jul 24, 2024
2 parents 7ed92ee + a0653f5 commit 9da23ad
Show file tree
Hide file tree
Showing 8 changed files with 602 additions and 8 deletions.
10 changes: 10 additions & 0 deletions wee/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
version: '3.8'

services:
redis-cache:
image: redis
ports:
- "6379:6379"
env_file:
- webscraper/.env
command: sh -c 'redis-server --requirepass "$$REDIS_PASSWORD"'

webscraper:
build:
context: .
Expand All @@ -15,6 +23,8 @@ services:
command: >
sh -c "npx nx serve webscraper --skip-nx-cache --configuration=production --verbose"
user: webscraper
depends_on:
- redis-cache

frontend:
build:
Expand Down
Loading

0 comments on commit 9da23ad

Please sign in to comment.