Skip to content

Commit 6d6cf18

Browse files
committed
Merge branch 'canary' into feat/add-delete-old-deployments
2 parents 2be92d2 + 32ed0c7 commit 6d6cf18

260 files changed

Lines changed: 87476 additions & 8640 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.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: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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": ["--name", "dokploy-devcontainer"]
53+
}

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Before submitting this PR, please make sure that:
88

99
- [ ] You created a dedicated branch based on the `canary` branch.
1010
- [ ] You have read the suggestions in the CONTRIBUTING.md file https://github.com/Dokploy/dokploy/blob/canary/CONTRIBUTING.md#pull-request
11-
- [ ] You have tested this PR in your local instance.
11+
- [ ] You have tested this PR in your local instance. If you have not tested it yet, please do so before submitting. This helps avoid wasting maintainers' time reviewing code that has not been verified by you.
1212

1313
## Issues related (if applicable)
1414

.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

CONTRIBUTING.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Hey, thanks for your interest in contributing to Dokploy! We appreciate your help and taking your time to contribute.
44

5-
Before you start, please first discuss the feature/bug you want to add with the owners and comunity via github issues.
5+
Before you start, please first discuss the feature/bug you want to add with the owners and community via github issues.
66

77
We have a few guidelines to follow when contributing to this project:
88

@@ -11,6 +11,7 @@ We have a few guidelines to follow when contributing to this project:
1111
- [Development](#development)
1212
- [Build](#build)
1313
- [Pull Request](#pull-request)
14+
- [Important Considerations](#important-considerations-for-pull-requests)
1415

1516
## Commit Convention
1617

@@ -162,8 +163,9 @@ curl -sSL "https://github.com/buildpacks/pack/releases/download/v0.39.1/pack-v0.
162163
- If your pull request fixes an open issue, please reference the issue in the pull request description.
163164
- Once your pull request is merged, you will be automatically added as a contributor to the project.
164165

165-
**Important Considerations for Pull Requests:**
166+
### Important Considerations for Pull Requests
166167

168+
- **Testing is Mandatory:** All Pull Requests **must be tested** before submission. You must verify that your changes work as expected in a local development environment (see [Setup](#setup)). **Pull Requests that have not been tested will be closed.** This policy ensures clean contributions and reduces the time maintainers spend reviewing untested or broken code.
167169
- **Focus and Scope:** Each Pull Request should ideally address a single, well-defined problem or introduce one new feature. This greatly facilitates review and reduces the chances of introducing unintended side effects.
168170
- **Avoid Unfocused Changes:** Please avoid submitting Pull Requests that contain only minor changes such as whitespace adjustments, IDE-generated formatting, or removal of unused variables, unless these are part of a larger, clearly defined refactor or a dedicated "cleanup" Pull Request that addresses a specific `good first issue` or maintenance task.
169171
- **Issue Association:** For any significant change, it's highly recommended to open an issue first to discuss the proposed solution with the community and maintainers. This ensures alignment and avoids duplicated effort. If your PR resolves an existing issue, please link it in the description (e.g., `Fixes #123`, `Closes #456`).

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,8 @@ RUN curl -sSL https://railpack.com/install.sh | bash
6565
COPY --from=buildpacksio/pack:0.39.1 /usr/local/bin/pack /usr/local/bin/pack
6666

6767
EXPOSE 3000
68-
CMD [ "pnpm", "start" ]
68+
69+
HEALTHCHECK --interval=10s --timeout=3s --retries=10 \
70+
CMD curl -fs http://localhost:3000/api/trpc/settings.health || exit 1
71+
72+
CMD ["sh", "-c", "pnpm run wait-for-postgres && exec pnpm start"]

Dockerfile.schedule

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ COPY --from=build /prod/schedules/dist ./dist
3535
COPY --from=build /prod/schedules/package.json ./package.json
3636
COPY --from=build /prod/schedules/node_modules ./node_modules
3737

38-
CMD HOSTNAME=0.0.0.0 && pnpm start
38+
ENV HOSTNAME=0.0.0.0
39+
CMD ["pnpm", "start"]

Dockerfile.server

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ COPY --from=build /prod/api/dist ./dist
3535
COPY --from=build /prod/api/package.json ./package.json
3636
COPY --from=build /prod/api/node_modules ./node_modules
3737

38-
CMD HOSTNAME=0.0.0.0 && pnpm start
38+
ENV HOSTNAME=0.0.0.0
39+
CMD ["pnpm", "start"]

LICENSE.MD

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
# License
1+
Copyright 2026-present Dokploy Technology, Inc.
22

3-
## Core License (Apache License 2.0)
3+
Portions of this software are licensed as follows:
44

5-
Copyright 2025 Mauricio Siu.
5+
* All content that resides under a "/proprietary" directory of this repository, if that directory exists, is licensed under the license defined in "LICENSE_PROPRIETARY".
6+
* Content outside of the above mentioned directories or restrictions above is available under the "Apache License 2.0" license as defined below.
7+
8+
## Apache License 2.0
9+
10+
Copyright 2026-present Dokploy Technology, Inc.
611

712
Licensed under the Apache License, Version 2.0 (the "License");
813
you may not use this file except in compliance with the License.
@@ -15,12 +20,4 @@ distributed under the License is distributed on an "AS IS" BASIS,
1520
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1621
See the License for the specific language governing permissions and limitations under the License.
1722

18-
## Additional Terms for Specific Features
19-
20-
The following additional terms apply to the multi-node support, Docker Compose file, Preview Deployments and Multi Server features of Dokploy. In the event of a conflict, these provisions shall take precedence over those in the Apache License:
21-
22-
- **Self-Hosted Version Free**: All features of Dokploy, including multi-node support, Docker Compose file support, Schedules, Preview Deployments and Multi Server, will always be free to use in the self-hosted version.
23-
- **Restriction on Resale**: The multi-node support, Docker Compose file support, Schedules, Preview Deployments and Multi Server features cannot be sold or offered as a service by any party other than the copyright holder without prior written consent.
24-
- **Modification Distribution**: Any modifications to the multi-node support, Docker Compose file support, Schedules, Preview Deployments and Multi Server features must be distributed freely and cannot be sold or offered as a service.
2523

26-
For further inquiries or permissions, please contact us directly.

LICENSE_PROPRIETARY.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
The Dokploy Source Available license (DSAL) version 1.0
2+
3+
Copyright (c) 2026-present Dokploy Technology, Inc.
4+
5+
With regard to the Dokploy Software:This software and associated documentation files (the "Software") may only beused in production, if you (and any entity that you represent) have agreed to, and are in compliance with, a valid commercial agreement from Dokploy.Subject to the foregoing sentence, you are free to modify this Software and publish patches to the Software. You agree that Dokploy and/or its licensors (as applicable) retain all right, title and interest in and to all such modifications and/or patches, and all such modifications and/or patches may only be used, copied, modified, displayed, distributed, or otherwise exploited with a valid Dokploy Source Available License.  Notwithstanding the foregoing, you may copy and modify the Software for development and testing purposes, without requiring a subscription.  You agree that Dokploy and/or its licensors (as applicable) retain all right, title and interest in and to all such modifications.  You are not granted any other rights beyond what is expressly stated herein.  Subject to theforegoing, it is forbidden to copy, merge, publish, distribute, sublicense,and/or sell the Software.
6+
7+
This Dokploy Source Available license applies only to the part of this Software that is in a /proprietary folder. The full text of this License shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.
10+
11+
For all third party components incorporated into the Dokploy Software, thosecomponents are licensed under the original license provided by the owner of the applicable component.

0 commit comments

Comments
 (0)