Skip to content

Commit

Permalink
docker test
Browse files Browse the repository at this point in the history
  • Loading branch information
harshsbhat committed Dec 28, 2024
1 parent 664ab23 commit 9239851
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Ignore node_modules (since we install dependencies inside the container)
node_modules

# Ignore build directories
.next
out

# Ignore Dockerfile and docker-compose if not needed in production image
Dockerfile
docker-compose.yml

# Ignore environment files
.env.local
.env.development
.env.production
.env.test

# Ignore logs and temporary files
*.log
*.tmp
*.swp

# Ignore Git related files
.git
.gitignore

# Ignore IDE/editor files
.vscode
.idea
*.sublime-workspace
*.sublime-project

# Ignore test coverage
coverage
17 changes: 17 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: '3'
services:
redis:
image: redis
restart: always
ports:
- '6379:6379'

serverless-redis-http:
ports:
- '8079:80'
image: hiett/serverless-redis-http:latest
restart: always
environment:
SRH_MODE: env
SRH_TOKEN: example_token
SRH_CONNECTION_STRING: 'redis://redis:6379' # Using `redis` hostname since they're in the same Docker network.
2 changes: 1 addition & 1 deletion src/app/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ export default async function NotepadPage({ params }: NotepadPageProps) {
)}
</div>
);
}
}

0 comments on commit 9239851

Please sign in to comment.