mirror of https://github.com/ghostfolio/ghostfolio
committed by
GitHub
4 changed files with 84 additions and 0 deletions
@ -0,0 +1,12 @@ |
|||
FROM node:22-slim |
|||
|
|||
# Match the build tooling used by the production Dockerfile (keep this |
|||
# list and the --no-install-suggests flag in sync with it) so native |
|||
# dependencies (e.g. Prisma) compile correctly inside the Dev Container |
|||
RUN apt-get update && apt-get install -y --no-install-suggests \ |
|||
g++ \ |
|||
git \ |
|||
make \ |
|||
openssl \ |
|||
python3 \ |
|||
&& rm -rf /var/lib/apt/lists/* |
|||
@ -0,0 +1,31 @@ |
|||
{ |
|||
"name": "Ghostfolio", |
|||
"dockerComposeFile": [ |
|||
"../docker/docker-compose.dev.yml", |
|||
"docker-compose.yml" |
|||
], |
|||
"service": "app", |
|||
"workspaceFolder": "/workspaces/ghostfolio", |
|||
"shutdownAction": "stopCompose", |
|||
"remoteUser": "node", |
|||
"forwardPorts": [3333, 4200], |
|||
"portsAttributes": { |
|||
"3333": { |
|||
"label": "API" |
|||
}, |
|||
"4200": { |
|||
"label": "Client" |
|||
} |
|||
}, |
|||
"postCreateCommand": "npm install", |
|||
"customizations": { |
|||
"vscode": { |
|||
"extensions": [ |
|||
"angular.ng-template", |
|||
"esbenp.prettier-vscode", |
|||
"firsttris.vscode-jest-runner", |
|||
"nrwl.angular-console" |
|||
] |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,17 @@ |
|||
services: |
|||
app: |
|||
build: |
|||
context: .. |
|||
dockerfile: .devcontainer/Dockerfile |
|||
volumes: |
|||
- ..:/workspaces/ghostfolio:cached |
|||
- node_modules:/workspaces/ghostfolio/node_modules |
|||
command: sleep infinity |
|||
depends_on: |
|||
postgres: |
|||
condition: service_healthy |
|||
redis: |
|||
condition: service_healthy |
|||
|
|||
volumes: |
|||
node_modules: |
|||
Loading…
Reference in new issue