🐞 fix: Update docker config

This commit is contained in:
2025-07-28 17:01:24 +00:00
parent 679059a360
commit f62eff64a0
3 changed files with 12 additions and 33 deletions

View File

@@ -1,31 +1,14 @@
version: '3.8'
services:
frontend:
build:
context: .
dockerfile: Dockerfile
container_name: PromptBase
image: promptbase
restart: unless-stopped
ports:
- "3333:3000"
- "4321:4321"
volumes:
- ./app:/app
- ./app/node_modules
# - ./app:/app
# - ./app/node_modules:/app/node_modules
- ./.env:/app/.env:ro # Bind-mount .env as read-only
environment:
- NODE_ENV=production
restart: unless-stopped
supabase:
image: supabase/postgres:15
ports:
- "54322:5432"
volumes:
- supabase-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: ${SUPABASE_DB_PASSWORD}
POSTGRES_USER: postgres
POSTGRES_DB: postgres
restart: unless-stopped
volumes:
supabase-data: