Add devcontainer and docker-compose configuration files; update .gitignore
This commit is contained in:
25
.devcontainer/docker-compose.yml
Normal file
25
.devcontainer/docker-compose.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
# version: '3.8'
|
||||
services:
|
||||
dev:
|
||||
image: mcr.microsoft.com/devcontainers/typescript-node:4-24-trixie
|
||||
command: ["sleep", "infinity"]
|
||||
# mount the repository root into the container workspace
|
||||
volumes:
|
||||
- ..:/workspace:cached
|
||||
ports:
|
||||
- '3000:3000'
|
||||
depends_on:
|
||||
- redis
|
||||
environment:
|
||||
- REDIS_HOST=redis
|
||||
- REDIS_PORT=6379
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
ports:
|
||||
- '6379:6379'
|
||||
volumes:
|
||||
- redis-data:/data
|
||||
|
||||
volumes:
|
||||
redis-data:
|
||||
Reference in New Issue
Block a user