-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.run.yml
More file actions
74 lines (71 loc) · 1.56 KB
/
docker-compose.run.yml
File metadata and controls
74 lines (71 loc) · 1.56 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
services:
app:
profiles: [run]
image: "${IMAGE_NAME}:${IMAGE_TAG}"
build:
dockerfile: Dockerfile
args:
- ENVIRONMENT
- APP_NAME
- APP_VERSION
- COMMIT_SHA
tags:
- "${IMAGE_NAME}:${IMAGE_TAG_ALIAS}"
ports:
- "127.0.0.1:8000:8000"
env_file: .env.run-docker
develop:
watch:
- action: sync+restart
path: ./app
target: /code/app
- action: rebuild
path: uv.lock
depends_on:
db:
condition: service_healthy
minio:
condition: service_started
db:
profiles: [run]
image: pgvector/pgvector:0.8.0-pg17-trixie
environment:
- POSTGRES_USER=entitycore
- POSTGRES_PASSWORD=entitycore
ports:
- "127.0.0.1:5433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER"]
interval: 10s
timeout: 5s
retries: 3
start_period: 5s
start_interval: 2s
restart: unless-stopped
volumes:
- pgdata:/var/lib/postgresql/data
- ./data:/data
command:
- postgres
# - -clog_statement=all
- -clog_min_duration_statement=100ms
- -clog_lock_waits=on
minio:
image: minio/minio:latest
environment:
MINIO_ROOT_USER: entitycore
MINIO_ROOT_PASSWORD: entitycore
ports:
- 127.0.0.1:9000:9000
- 127.0.0.1:9001:9001
volumes:
- s3data:/data
entrypoint: sh
command:
- -cx
- |
mkdir -p /data/entitycore-data-dev &&
minio server /data --console-address :9001
volumes:
pgdata: {}
s3data: {}