Skip to content

Instantly share code, notes, and snippets.

@brunodorea
Created July 10, 2025 12:04
Show Gist options
  • Save brunodorea/30f5e84bcca8045e1950cb0c21706a83 to your computer and use it in GitHub Desktop.
Save brunodorea/30f5e84bcca8045e1950cb0c21706a83 to your computer and use it in GitHub Desktop.
docker-compose.yml do app da NWL #20 Fullstack
services:
db:
image: pgvector/pgvector:pg17
container_name: nlw-agents-db
environment:
POSTGRES_USER: docker
POSTGRES_PASSWORD: docker
POSTGRES_DB: agents
ports:
- "5432:5432"
volumes:
- ./server/docker/setup.sql:/docker-entrypoint-initdb.d/setup.sql
server:
build: ./server
container_name: nlw-agents-server
depends_on:
- db
ports:
- "3333:3333"
working_dir: /app
volumes:
- ./server:/app
env_file:
- ./server/.env
command: npm install && npm run dev
web:
build: ./web
container_name: nlw-agents-web
depends_on:
- server
ports:
- "5173:5173"
working_dir: /app
volumes:
- ./web:/app
command: npm install && npm run dev
volumes:
postgres-data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment