Download data/apps/dokploy/setup.ts from llama1/dokpl0y: direct link, hf CLI and curl.
- Browser
- Download file 823 Bytes
-
https://huggingface.co/datasets/llama1/dokpl0y/resolve/main/data/apps/dokploy/setup.ts
- Command line
-
hf download hf://datasets/llama1/dokpl0y/data/apps/dokploy/setup.ts
-
curl -L -o setup.ts https://huggingface.co/datasets/llama1/dokpl0y/resolve/main/data/apps/dokploy/setup.ts
823 Bytes
| import { | |
| createDefaultMiddlewares, | |
| createDefaultServerTraefikConfig, | |
| createDefaultTraefikConfig, | |
| initializeTraefik, | |
| } from "@dokploy/server/setup/traefik-setup"; | |
| import { setupDirectories } from "@dokploy/server/setup/config-paths"; | |
| import { initializePostgres } from "@dokploy/server/setup/postgres-setup"; | |
| import { initializeRedis } from "@dokploy/server/setup/redis-setup"; | |
| import { | |
| initializeNetwork, | |
| initializeSwarm, | |
| } from "@dokploy/server/setup/setup"; | |
| (async () => { | |
| try { | |
| setupDirectories(); | |
| createDefaultMiddlewares(); | |
| await initializeSwarm(); | |
| await initializeNetwork(); | |
| createDefaultTraefikConfig(); | |
| createDefaultServerTraefikConfig(); | |
| await initializeTraefik(); | |
| await initializeRedis(); | |
| await initializePostgres(); | |
| } catch (e) { | |
| console.error("Error in dokploy setup", e); | |
| } | |
| })(); | |