Skip to content

Commit e0433e9

Browse files
authored
Merge pull request #1554 from Dokploy/1061-custom-docker-service-hostname
1061 custom docker service hostname
2 parents 9535fca + d29ff88 commit e0433e9

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

.github/workflows/dokploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Dokploy Docker Build
22

33
on:
44
push:
5-
branches: [main, canary, "feat/better-auth-2"]
5+
branches: [main, canary, "1061-custom-docker-service-hostname"]
66

77
env:
88
IMAGE_NAME: dokploy/dokploy
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import type { ConnectionOptions } from "bullmq";
22

33
export const redisConfig: ConnectionOptions = {
4-
host: process.env.NODE_ENV === "production" ? "dokploy-redis" : "127.0.0.1",
4+
host:
5+
process.env.NODE_ENV === "production"
6+
? process.env.REDIS_HOST || "dokploy-redis"
7+
: "127.0.0.1",
58
};

apps/dokploy/server/server.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ import {
77
createDefaultTraefikConfig,
88
initCronJobs,
99
initializeNetwork,
10-
initializePostgres,
11-
initializeRedis,
12-
initializeTraefik,
1310
sendDokployRestartNotifications,
1411
setupDirectories,
1512
} from "@dokploy/server";
@@ -49,14 +46,7 @@ void app.prepare().then(async () => {
4946
await initializeNetwork();
5047
createDefaultTraefikConfig();
5148
createDefaultServerTraefikConfig();
52-
await initializePostgres();
53-
await initializeTraefik();
54-
await initializeRedis();
55-
5649
initCronJobs();
57-
58-
// Timeout to wait for the database to be ready
59-
await new Promise((resolve) => setTimeout(resolve, 7000));
6050
await migration();
6151
await sendDokployRestartNotifications();
6252
}

0 commit comments

Comments
 (0)