-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
82 lines (80 loc) · 1.95 KB
/
docker-compose.yml
File metadata and controls
82 lines (80 loc) · 1.95 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
services:
db:
image: postgres:16
restart: always
environment: &dbconfig
POSTGRES_DB: ${POSTGRES_DB:-willa}
POSTGRES_USER: ${POSTGRES_USER:-root}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-root}
DATABASE_URL: ${DATABASE_URL:-postgresql://${POSTGRES_USER:-root}:${POSTGRES_PASSWORD:-root}@db/${POSTGRES_DB:-willa}}
ports:
- 5432:5432
volumes:
- ./.data/postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-root} -d ${POSTGRES_DB:-willa}"]
interval: 10s
timeout: 5s
retries: 5
app:
build:
context: .
depends_on:
db:
condition: service_healthy
image: ${DOCKER_APP_IMAGE:-willa:local}
init: true
restart: always
ports:
- 8000:8000
env_file: .env
environment:
<<: *dbconfig
EXTRA_VERSION: ${EXTRA_VERSION:-}
DEPLOYMENT_ID: ${DEPLOYMENT_ID:-compose-unknown}
volumes:
- ./.data/lancedb:/lancedb
- ./tmp:/pdfs
- ./willa:/app/willa:rw
- ./public:/app/public
ollama:
profiles:
- ollama
image: ollama/ollama
restart: always
ports:
- 11434:11434
volumes:
- ./ollama:/root/.ollama:rw
- ./models:/models
prisma:
profiles:
- prisma
build:
context: .
dockerfile: Dockerfile.prisma
restart: always
environment: *dbconfig
ports:
- 5555:5555
depends_on:
db:
condition: service_healthy
localstack:
profiles:
- localstack
container_name: "localstack-main"
image: localstack/localstack:4.7
restart: always
ports:
- 4566:4566
environment:
SERVICES: s3
LANCEDB_URI:
AWS_ACCESS_KEY_ID:
AWS_SECRET_ACCESS_KEY:
DEBUG: ${DEBUG:-0}
volumes:
- "./bin/init-s3.sh:/etc/localstack/init/ready.d/init-s3.sh"
- ./.data/localstack:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"