feat: added dev container as an option to run & develop sim studio

This commit is contained in:
Waleed Latif
2025-03-03 13:27:48 -08:00
parent 2f58ff0fbc
commit 9ad75b53a2
7 changed files with 289 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
version: '3.8'
services:
app:
build:
context: ..
dockerfile: .devcontainer/Dockerfile
volumes:
- ..:/workspace:cached
command: sleep infinity
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/postgres
- NEXT_PUBLIC_SUPABASE_URL=${NEXT_PUBLIC_SUPABASE_URL:-http://db:5432}
- NEXT_PUBLIC_SUPABASE_ANON_KEY=${NEXT_PUBLIC_SUPABASE_ANON_KEY:-your-anon-key}
depends_on:
- db
network_mode: service:db
db:
image: postgres:14
restart: unless-stopped
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
- "3000:3000"
volumes:
postgres-data: