🔧 Fix default docker compose file, add db to same network

Linked to #2056
This commit is contained in:
Baptiste Arnaud 2025-03-26 11:55:58 +01:00
parent 0606fa3d8b
commit d79dfbb5a7
No known key found for this signature in database
2 changed files with 8 additions and 7 deletions

View File

@ -1,6 +1,5 @@
import { datesAreOnSameDay } from "@/helpers/datesAreOnSameDate";
import { env } from "@typebot.io/env";
import { getIp } from "@typebot.io/lib/getIp";
import { isDefined } from "@typebot.io/lib/utils";
import prisma from "@typebot.io/prisma";
import { clientUserSchema } from "@typebot.io/schemas/features/user/schema";

View File

@ -21,10 +21,12 @@ services:
- POSTGRES_DB=typebot
- POSTGRES_PASSWORD=typebot
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
networks:
- typebot-network
typebot-redis:
image: redis:alpine
@ -45,13 +47,13 @@ services:
<<: *typebot-common
image: baptistearno/typebot-builder:latest
ports:
- '8080:3000'
- "8080:3000"
typebot-viewer:
<<: *typebot-common
image: baptistearno/typebot-viewer:latest
ports:
- '8081:3000'
- "8081:3000"
networks:
typebot-network: