File size: 1,090 Bytes
942050b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
27
28
29
30
31
32
33
34
35
36
37
38
39
services:
  postgres:
    profiles: ["postgres", "all"]
    image: postgres:16-alpine
    container_name: nl_sql_postgres
    environment:
      POSTGRES_DB: nl_sql_demo
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
    ports:
      - "5433:5432"
    volumes:
      - nl_sql_pg_data:/var/lib/postgresql/data
      - ./scripts/sql/postgres_init.sql:/docker-entrypoint-initdb.d/01_init.sql:ro
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postgres -d nl_sql_demo"]
      interval: 5s
      timeout: 3s
      retries: 10

  langfuse:
    profiles: ["langfuse", "all"]
    image: langfuse/langfuse:latest
    container_name: nl_sql_langfuse
    depends_on:
      postgres:
        condition: service_healthy
    environment:
      DATABASE_URL: postgresql://postgres:postgres@postgres:5432/nl_sql_demo
      NEXTAUTH_SECRET: "${LANGFUSE_NEXTAUTH_SECRET:-dev-secret-change-me}"
      SALT: "${LANGFUSE_SALT:-dev-salt-change-me}"
      NEXTAUTH_URL: "http://localhost:3000"
      TELEMETRY_ENABLED: "false"
    ports:
      - "3000:3000"

volumes:
  nl_sql_pg_data: