Created
July 10, 2025 12:04
-
-
Save brunodorea/30f5e84bcca8045e1950cb0c21706a83 to your computer and use it in GitHub Desktop.
docker-compose.yml do app da NWL #20 Fullstack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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