forked from postgresml/postgresml
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (39 loc) · 843 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (39 loc) · 843 Bytes
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
version: "3"
services:
postgres:
healthcheck:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 1s
timeout: 5s
retries: 100
build:
context: ./pgml-extension/
dockerfile: Dockerfile.local
ports:
- "5433:5432"
command:
- sleep
- infinity
dashboard:
depends_on:
postgres:
condition: service_healthy
build:
context: ./pgml-dashboard/
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
ROCKET_ADDRESS: 0.0.0.0
DATABASE_URL: postgres://postgres:postgres@postgres:5432/pgml_development
command: bash -c "sqlx migrate run && cargo run"
docs:
build:
context: ./pgml-docs/
dockerfile: Dockerfile
ports:
- "8001:8001"
command:
- mkdocs
- serve
- -a 0.0.0.0:8001