Skip to content

Commit 82c9cec

Browse files
committed
chore: add DevContainer
1 parent 068deec commit 82c9cec

File tree

3 files changed

+77
-4
lines changed

3 files changed

+77
-4
lines changed

.devcontainer/Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Dockerfile for DevContainer
2+
FROM node:20.16.0-bullseye-slim
3+
4+
# Install essential packages
5+
RUN apt-get update && apt-get install -y \
6+
curl \
7+
bash \
8+
git \
9+
&& apt-get clean \
10+
&& rm -rf /var/lib/apt/lists/*
11+
12+
# Set up PNPM
13+
ENV PNPM_HOME="/pnpm"
14+
ENV PATH="$PNPM_HOME:$PATH"
15+
RUN corepack enable && corepack prepare pnpm@9.12.0 --activate
16+
17+
# Create workspace directory
18+
WORKDIR /workspaces/dokploy
19+
20+
# Set up user permissions
21+
USER node

.devcontainer/devcontainer.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"name": "Dokploy development container",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
"context": ".."
6+
},
7+
"features": {
8+
"ghcr.io/devcontainers/features/docker-in-docker:2": {
9+
"moby": true,
10+
"version": "latest"
11+
},
12+
"ghcr.io/devcontainers/features/git:1": {
13+
"ppa": true,
14+
"version": "latest"
15+
},
16+
"ghcr.io/devcontainers/features/go:1": {
17+
"version": "1.20"
18+
}
19+
},
20+
"customizations": {
21+
"vscode": {
22+
"extensions": [
23+
"ms-vscode.vscode-typescript-next",
24+
"bradlc.vscode-tailwindcss",
25+
"ms-vscode.vscode-json",
26+
"biomejs.biome",
27+
"golang.go",
28+
"redhat.vscode-xml",
29+
"github.vscode-github-actions",
30+
"github.copilot",
31+
"github.copilot-chat"
32+
]
33+
}
34+
},
35+
"forwardPorts": [3000, 5432, 6379],
36+
"portsAttributes": {
37+
"3000": {
38+
"label": "Dokploy App",
39+
"onAutoForward": "notify"
40+
},
41+
"5432": {
42+
"label": "PostgreSQL",
43+
"onAutoForward": "silent"
44+
},
45+
"6379": {
46+
"label": "Redis",
47+
"onAutoForward": "silent"
48+
}
49+
},
50+
"remoteUser": "node",
51+
"workspaceFolder": "/workspaces/dokploy",
52+
"runArgs": [
53+
"--name", "dokploy-devcontainer"
54+
]
55+
}

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,4 @@ yarn-error.log*
4343
*.pem
4444

4545

46-
.db
47-
48-
# Development environment
49-
.devcontainer
46+
.db

0 commit comments

Comments
 (0)