Skip to content

More templates #613

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 33 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
3e0d4eb
feat: added mailserver template
SashaGoncharov19 Sep 17, 2024
0327334
fix: run pnpm check
SashaGoncharov19 Sep 17, 2024
a39a7a2
fix: clean after mailcow tests
SashaGoncharov19 Sep 17, 2024
706cde4
Merge branch 'Dokploy:canary' into canary
SashaGoncharov19 Sep 20, 2024
8b855d7
feat: added erpnext template
SashaGoncharov19 Sep 20, 2024
d833623
Merge branch 'canary' into canary
SashaGoncharov19 Oct 4, 2024
059c21c
Merge branch 'Dokploy:canary' into canary
SashaGoncharov19 Oct 13, 2024
bf48aa0
Merge branch 'Dokploy:canary' into canary
SashaGoncharov19 Oct 21, 2024
4431f56
fix: run biome check
SashaGoncharov19 Oct 21, 2024
fbec26f
Merge branch 'Dokploy:canary' into canary
SashaGoncharov19 Oct 26, 2024
1695c7c
Merge branch 'Dokploy:canary' into canary
SashaGoncharov19 Oct 27, 2024
b7d4534
feat: influxdb template
SashaGoncharov19 Oct 27, 2024
15051a1
feat: infisical template
SashaGoncharov19 Oct 27, 2024
2a5a67e
feat: docmost template
SashaGoncharov19 Oct 27, 2024
527c01e
feat: vaultwarden template
SashaGoncharov19 Oct 27, 2024
bbef99c
feat: hi.events template
SashaGoncharov19 Oct 27, 2024
adea440
feat: windows os template
SashaGoncharov19 Oct 27, 2024
2821e43
feat: macos template
SashaGoncharov19 Oct 28, 2024
02d52d6
fix: uptime-kuma bump
SashaGoncharov19 Oct 28, 2024
bad11f1
fix: gitea bump
SashaGoncharov19 Oct 28, 2024
a4eb5c0
fix: soketi bump
SashaGoncharov19 Oct 28, 2024
25803f3
feat: coder template
SashaGoncharov19 Oct 28, 2024
de02a00
fix: coder template
SashaGoncharov19 Oct 28, 2024
a04b69d
Merge branch 'Dokploy:canary' into canary
SashaGoncharov19 Oct 31, 2024
bba7d0c
Update apps/dokploy/templates/templates.ts
SashaGoncharov19 Nov 1, 2024
980024c
Merge branch 'Dokploy:canary' into canary
SashaGoncharov19 Nov 1, 2024
2da6506
Merge branch 'canary' into more-templates
SashaGoncharov19 Nov 1, 2024
2f8b89c
fix: nocodb bump
SashaGoncharov19 Nov 1, 2024
0468c25
fix: add missing images
mezotv Nov 3, 2024
e367799
Merge pull request #1 from mezotv/more-templates
SashaGoncharov19 Nov 3, 2024
e40a0fd
fix: remove erpnext/mailserver templates
SashaGoncharov19 Nov 3, 2024
84aac40
Merge remote-tracking branch 'origin/more-templates' into more-templates
SashaGoncharov19 Nov 3, 2024
2a24e1d
Update docker-compose.yml
Siumauricio Nov 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/dokploy/public/templates/coder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/dokploy/public/templates/docmost.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions apps/dokploy/public/templates/hi-events.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/dokploy/public/templates/infisical.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/dokploy/public/templates/influxdb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/dokploy/public/templates/macos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions apps/dokploy/public/templates/vaultwarden.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/dokploy/public/templates/windows.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions apps/dokploy/templates/coder/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
services:
coder:
image: ghcr.io/coder/coder:v2.15.3
networks:
- dokploy-network
volumes:
- /var/run/docker.sock:/var/run/docker.sock
group_add:
- "998"
depends_on:
db:
condition: service_healthy
environment:
- CODER_ACCESS_URL
- CODER_HTTP_ADDRESS
- CODER_PG_CONNECTION_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db/${POSTGRES_DB}?sslmode=disable

db:
image: postgres:17
networks:
- dokploy-network
environment:
- POSTGRES_PASSWORD
- POSTGRES_USER
- POSTGRES_DB
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}",
]
interval: 5s
timeout: 5s
retries: 5
volumes:
- db_coder_data:/var/lib/postgresql/data

volumes:
db_coder_data:
30 changes: 30 additions & 0 deletions apps/dokploy/templates/coder/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import {
type DomainSchema,
type Schema,
type Template,
generateRandomDomain,
} from "../utils";

export function generate(schema: Schema): Template {
const domains: DomainSchema[] = [
{
host: generateRandomDomain(schema),
port: 7080,
serviceName: "coder",
},
];

const envs = [
"CODER_ACCESS_URL=",
"CODER_HTTP_ADDRESS=0.0.0.0:7080",
"",
"POSTGRES_DB=coder",
"POSTGRES_USER=coder",
"POSTGRES_PASSWORD=VERY_STRONG_PASSWORD",
];

return {
domains,
envs,
};
}
47 changes: 47 additions & 0 deletions apps/dokploy/templates/docmost/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
version: "3"

services:
docmost:
image: docmost/docmost:0.4.1
depends_on:
- db
- redis
environment:
- APP_URL
- APP_SECRET
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}?schema=public
- REDIS_URL=redis://redis:6379
restart: unless-stopped
networks:
- dokploy-network
volumes:
- docmost:/app/data/storage

db:
image: postgres:16-alpine
environment:
- POSTGRES_DB
- POSTGRES_USER
- POSTGRES_PASSWORD
restart: unless-stopped
networks:
- dokploy-network
volumes:
- db_docmost_data:/var/lib/postgresql/data

redis:
image: redis:7.2-alpine
restart: unless-stopped
networks:
- dokploy-network
volumes:
- redis_docmost_data:/data

networks:
dokploy-network:
external: true

volumes:
docmost:
db_docmost_data:
redis_docmost_data:
29 changes: 29 additions & 0 deletions apps/dokploy/templates/docmost/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import {
type DomainSchema,
type Schema,
type Template,
generateRandomDomain,
} from "../utils";

export function generate(schema: Schema): Template {
const domains: DomainSchema[] = [
{
host: generateRandomDomain(schema),
port: 3000,
serviceName: "docmost",
},
];

const envs = [
"POSTGRES_DB=docmost",
"POSTGRES_USER=docmost",
"POSTGRES_PASSWORD=STRONG_DB_PASSWORD",
"APP_URL=http://localhost:3000",
"APP_SECRET=VERY_STRONG_SECRET",
];

return {
domains,
envs,
};
}
4 changes: 2 additions & 2 deletions apps/dokploy/templates/gitea/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.8"
services:
gitea:
image: gitea/gitea:1.22.2
image: gitea/gitea:1.22.3
environment:
- USER_UID=${USER_UID}
- USER_GID=${USER_GID}
Expand All @@ -21,7 +21,7 @@ services:
- db

db:
image: postgres:16
image: postgres:17
restart: always
environment:
- POSTGRES_USER=gitea
Expand Down
45 changes: 45 additions & 0 deletions apps/dokploy/templates/hi-events/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
services:
all-in-one:
image: daveearley/hi.events-all-in-one:v0.8.0-beta.1
restart: always
environment:
- VITE_FRONTEND_URL=https://${DOMAIN}
- APP_FRONTEND_URL=https://${DOMAIN}
- VITE_API_URL_CLIENT=https://${DOMAIN}/api
- VITE_API_URL_SERVER=http://localhost:80/api
- VITE_STRIPE_PUBLISHABLE_KEY
- LOG_CHANNEL=stderr
- QUEUE_CONNECTION=sync
- MAIL_MAILER=array
- APP_KEY
- JWT_SECRET
- FILESYSTEM_PUBLIC_DISK=public
- FILESYSTEM_PRIVATE_DISK=local
- APP_CDN_URL=https://${DOMAIN}/storage
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
- MAIL_MAILER
- MAIL_HOST
- MAIL_PORT
- MAIL_FROM_ADDRESS
- MAIL_FROM_NAME
depends_on:
- postgres

postgres:
image: elestio/postgres:16
restart: always
networks:
- dokploy-network
environment:
- POSTGRES_DB
- POSTGRES_USER
- POSTGRES_PASSWORD
volumes:
- pg_hi-events_data:/var/lib/postgresql/data

networks:
dokploy-network:
external: true

volumes:
pg_hi-events_data:
41 changes: 41 additions & 0 deletions apps/dokploy/templates/hi-events/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import {
type DomainSchema,
type Schema,
type Template,
generateRandomDomain,
} from "../utils";

export function generate(schema: Schema): Template {
const domains: DomainSchema[] = [
{
host: generateRandomDomain(schema),
port: 80,
serviceName: "all-in-one",
},
];

const envs = [
"# change domain here",
"DOMAIN=my-events.com",
"",
"POSTGRES_DB=hievents",
"POSTGRES_USER=hievents",
"POSTGRES_PASSWORD=VERY_STRONG_PASSWORD",
"",
"VITE_STRIPE_PUBLISHABLE_KEY=",
"",
"APP_KEY=my-app-key",
"JWT_SECRET=STRONG_JWT_SECRET",
"",
"MAIL_MAILER=",
"MAIL_HOST=",
"MAIL_PORT=",
"MAIL_FROM_ADDRESS=",
"MAIL_FROM_NAME=",
];

return {
domains,
envs,
};
}
87 changes: 87 additions & 0 deletions apps/dokploy/templates/infisical/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
services:
db-migration:
depends_on:
db:
condition: service_healthy
image: infisical/infisical:v0.90.1-postgres
environment:
- NODE_ENV=production
- ENCRYPTION_KEY
- AUTH_SECRET
- SITE_URL
- DB_CONNECTION_URI=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
- REDIS_URL=redis://redis:6379
- SMTP_HOST
- SMTP_PORT
- SMTP_FROM_NAME
- SMTP_USERNAME
- SMTP_PASSWORD
- SMTP_SECURE=true
command: npm run migration:latest
pull_policy: always
networks:
- dokploy-network

backend:
restart: unless-stopped
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
db-migration:
condition: service_completed_successfully
image: infisical/infisical:v0.90.1-postgres
pull_policy: always
environment:
- NODE_ENV=production
- ENCRYPTION_KEY
- AUTH_SECRET
- SITE_URL
- DB_CONNECTION_URI=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
- REDIS_URL=redis://redis:6379
- SMTP_HOST
- SMTP_PORT
- SMTP_FROM_NAME
- SMTP_USERNAME
- SMTP_PASSWORD
- SMTP_SECURE=true
networks:
- dokploy-network

redis:
image: redis:7.4.1
env_file: .env
restart: always
environment:
- ALLOW_EMPTY_PASSWORD=yes
networks:
- dokploy-network
volumes:
- redis_infisical_data:/data

db:
image: postgres:14-alpine
restart: always
environment:
- POSTGRES_PASSWORD
- POSTGRES_USER
- POSTGRES_DB
volumes:
- pg_infisical_data:/var/lib/postgresql/data
networks:
- dokploy-network
healthcheck:
test: "pg_isready --username=${POSTGRES_USER} && psql --username=${POSTGRES_USER} --list"
interval: 5s
timeout: 10s
retries: 10

volumes:
pg_infisical_data:
redis_infisical_data:

networks:
dokploy-network:
external: true

Loading