mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-10-02 09:44:09 +10:00
Sorry, I'm just a devcontainer type of guy :D The restructure of the repo to a monorepo broke some things. I think I corrected them all so far. I had to add .pnpm-store to the root .gitignore, because the pnpm install in the container places it there. Alternatively, if that is not wanted, I could move the story via env variable afaik to another place inside the container outside of the repo.
61 lines
2.0 KiB
JSON
61 lines
2.0 KiB
JSON
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
|
|
{
|
|
"containerEnv": {
|
|
"DATABASE_URL": "postgres://drop:drop@db:5432/drop",
|
|
"EXTERNAL_URL": "http://localhost:4000",
|
|
"NUXT_PORT": "4000"
|
|
},
|
|
|
|
// Configure tool-specific properties.
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"lokalise.i18n-ally",
|
|
"esbenp.prettier-vscode",
|
|
"Prisma.prisma",
|
|
"bradlc.vscode-tailwindcss",
|
|
"Vue.volar",
|
|
"arktypeio.arkdark",
|
|
"EditorConfig.EditorConfig",
|
|
"dbaeumer.vscode-eslint"
|
|
],
|
|
"settings": {
|
|
"[json]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[jsonc]": {
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
|
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
// "remoteUser": "root"
|
|
|
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
|
"dockerComposeFile": "docker-compose.yml",
|
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
"features": {
|
|
"ghcr.io/devcontainers-extra/features/protoc:1": {},
|
|
"ghcr.io/devcontainers/features/node:1": {},
|
|
"ghcr.io/devcontainers/features/rust:1": {
|
|
"version": "nightly-2026-03-29"
|
|
}
|
|
},
|
|
|
|
"name": "Node.js",
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
// "forwardPorts": [],
|
|
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
|
"postCreateCommand": "sudo apt-get update && sudo apt-get install -y --no-install-recommends pkg-config libarchive-dev",
|
|
"postStartCommand": "pnpm install && pnpm prisma migrate deploy && cd ../torrential && cargo build --release && cd ../server",
|
|
|
|
"runServices": ["db", "app"],
|
|
"service": "app",
|
|
"shutdownAction": "stopCompose",
|
|
"workspaceFolder": "/workspaces/drop/server"
|
|
}
|