File size: 618 Bytes
c9dd907
deed3c6
c9dd907
 
 
 
 
 
 
 
 
 
 
6631a53
c65f9b7
c9dd907
deed3c6
 
 
c9dd907
c65f9b7
c9dd907
 
dcc699b
c9dd907
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM postgres:15

# Install Langfuse dependencies
RUN apt-get update && apt-get install -y curl

# Install Node.js
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
RUN apt-get install -y nodejs

# Install Langfuse
RUN npm install -g langfuse

# Generate secrets
#RUN openssl rand -base64 32 > /nextauth_secret.txt

# Set environment variables
ENV DATABASE_URL=postgresql://postgres:postgres@localhost:5432/langfuse
ENV POSTGRES_PASSWORD=postgres
ENV POSTGRES_DB=langfuse
ENV NEXTAUTH_SECRET=secret

# Expose ports
EXPOSE 5432 3000

# Start PostgreSQL and Langfuse
CMD service postgresql start && langfuse