-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompose.ghcr.yaml
More file actions
45 lines (42 loc) · 1.32 KB
/
Copy pathcompose.ghcr.yaml
File metadata and controls
45 lines (42 loc) · 1.32 KB
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
# Canvas Notebook — pre-built image with managed Postgres.
#
# Quick start:
# cp .env.docker.example .env.docker.local
# # edit .env.docker.local and fill in the REQUIRED section
# docker compose -f compose.ghcr.yaml up -d
#
# The app will be available at http://localhost:3456.
# For externally managed Postgres, use the portable CLI and its external preflight.
services:
canvas-notebook:
image: ${CANVAS_IMAGE:-ghcr.io/canvascoding/canvas-notebook:latest}
ports:
- "${HOST_PORT:-3456}:3000"
env_file:
- .env.docker.local
depends_on:
postgres:
condition: service_healthy
required: false
volumes:
- ./data:/data
restart: unless-stopped
postgres:
profiles:
- postgres
image: ${CANVAS_POSTGRES_IMAGE:-pgvector/pgvector:0.8.3-pg18}
environment:
POSTGRES_DB: ${CANVAS_POSTGRES_DB:-canvas_notebook}
POSTGRES_USER: ${CANVAS_POSTGRES_USER:-canvas}
POSTGRES_PASSWORD: ${CANVAS_POSTGRES_PASSWORD:-change-me}
volumes:
- canvas-postgres-data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 10
restart: unless-stopped
volumes:
canvas-postgres-data:
name: ${CANVAS_POSTGRES_DATA_VOLUME:-canvas-postgres-data}