mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Merge pull request #1554 from Dokploy/1061-custom-docker-service-hostname
1061 custom docker service hostname
This commit is contained in:
commit
e0433e9f7b
2
.github/workflows/dokploy.yml
vendored
2
.github/workflows/dokploy.yml
vendored
@ -2,7 +2,7 @@ name: Dokploy Docker Build
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main, canary, "feat/better-auth-2"]
|
branches: [main, canary, "1061-custom-docker-service-hostname"]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: dokploy/dokploy
|
IMAGE_NAME: dokploy/dokploy
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
import type { ConnectionOptions } from "bullmq";
|
import type { ConnectionOptions } from "bullmq";
|
||||||
|
|
||||||
export const redisConfig: ConnectionOptions = {
|
export const redisConfig: ConnectionOptions = {
|
||||||
host: process.env.NODE_ENV === "production" ? "dokploy-redis" : "127.0.0.1",
|
host:
|
||||||
|
process.env.NODE_ENV === "production"
|
||||||
|
? process.env.REDIS_HOST || "dokploy-redis"
|
||||||
|
: "127.0.0.1",
|
||||||
};
|
};
|
||||||
|
@ -7,9 +7,6 @@ import {
|
|||||||
createDefaultTraefikConfig,
|
createDefaultTraefikConfig,
|
||||||
initCronJobs,
|
initCronJobs,
|
||||||
initializeNetwork,
|
initializeNetwork,
|
||||||
initializePostgres,
|
|
||||||
initializeRedis,
|
|
||||||
initializeTraefik,
|
|
||||||
sendDokployRestartNotifications,
|
sendDokployRestartNotifications,
|
||||||
setupDirectories,
|
setupDirectories,
|
||||||
} from "@dokploy/server";
|
} from "@dokploy/server";
|
||||||
@ -49,14 +46,7 @@ void app.prepare().then(async () => {
|
|||||||
await initializeNetwork();
|
await initializeNetwork();
|
||||||
createDefaultTraefikConfig();
|
createDefaultTraefikConfig();
|
||||||
createDefaultServerTraefikConfig();
|
createDefaultServerTraefikConfig();
|
||||||
await initializePostgres();
|
|
||||||
await initializeTraefik();
|
|
||||||
await initializeRedis();
|
|
||||||
|
|
||||||
initCronJobs();
|
initCronJobs();
|
||||||
|
|
||||||
// Timeout to wait for the database to be ready
|
|
||||||
await new Promise((resolve) => setTimeout(resolve, 7000));
|
|
||||||
await migration();
|
await migration();
|
||||||
await sendDokployRestartNotifications();
|
await sendDokployRestartNotifications();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user