Initial commit

This commit is contained in:
2026-03-10 21:30:52 -03:00
commit 72a4f0be26
145 changed files with 14881 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
{
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainerSchema.json",
"name": "dwellops-platform",
"dockerComposeFile": ["../docker-compose.yml", "docker-compose.devcontainer.yml"],
"service": "devcontainer",
"workspaceFolder": "/workspaces/dwellops-platform",
"shutdownAction": "stopCompose",
"features": {
"ghcr.io/devcontainers/features/node:1": {
"version": "24"
},
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"onCreateCommand": "npm install -g pnpm@10 && pnpm install",
"postCreateCommand": "pnpm db:generate",
"customizations": {
"vscode": {
"extensions": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"prisma.prisma",
"bradlc.vscode-tailwindcss",
"stylelint.vscode-stylelint",
"ms-azuretools.vscode-docker"
],
"settings": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"typescript.tsdk": "node_modules/typescript/lib"
}
}
},
"forwardPorts": [3000, 3001, 5432, 1025, 8025],
"portsAttributes": {
"3000": { "label": "Web (Next.js)" },
"3001": { "label": "API (Fastify)" },
"5432": { "label": "PostgreSQL" },
"8025": { "label": "Mailpit UI" }
}
}

View File

@@ -0,0 +1,15 @@
services:
devcontainer:
image: mcr.microsoft.com/devcontainers/base:ubuntu-22.04
volumes:
- ..:/workspaces/dwellops-platform:cached
- /var/run/docker.sock:/var/run/docker.sock
command: sleep infinity
environment:
NODE_ENV: development
DATABASE_URL: postgresql://dwellops:dwellops@postgres:5432/dwellops_dev?schema=public
BETTER_AUTH_SECRET: devcontainer-secret-change-me-32-chars!
BETTER_AUTH_URL: http://localhost:3001
CORS_ORIGIN: http://localhost:3000
SMTP_HOST: mailpit
SMTP_PORT: "1025"