-
Notifications
You must be signed in to change notification settings - Fork 72
/
docker-compose.yml
61 lines (56 loc) · 1.8 KB
/
docker-compose.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# This compose file is a lightweight version of docker-compose-full.yml.
# It is intended to be used for local quickstarts.
# It does not include ClickHouse,
# Qdrant, Semantic Search, Python executor, and RabbitMQ.
# It only includes frontend, postgres, and app-server.
name: lmnr
services:
postgres:
image: postgres:16
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
healthcheck:
test: ["CMD", "pg_isready", "-U", "${POSTGRES_USER}", "-d", "${POSTGRES_DB}"]
interval: 2s
timeout: 5s
retries: 5
frontend:
image: ghcr.io/lmnr-ai/frontend
pull_policy: always
ports:
- "3000:3000"
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
PORT: 3000
BACKEND_URL: http://app-server:8000
SHARED_SECRET_TOKEN: ${SHARED_SECRET_TOKEN}
NEXTAUTH_URL: http://localhost:3000
NEXTAUTH_SECRET: some_secret
NEXT_PUBLIC_URL: http://localhost:3000
ENVIRONMENT: LITE # this disables runtime dependency on clickhouse
app-server:
image: ghcr.io/lmnr-ai/app-server
pull_policy: always
ports:
- "8000:8000"
- "8001:8001"
depends_on:
postgres:
condition: service_healthy
environment:
PORT: 8000
GRPC_PORT: 8001
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}
SHARED_SECRET_TOKEN: ${SHARED_SECRET_TOKEN}
ENVIRONMENT: LITE # this disables runtime dependency on clickhouse, rabbitmq, semantic search, and python executor
volumes:
postgres-data: