File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ version: "3"
2
2
services :
3
3
postgres :
4
4
healthcheck :
5
- test : psql -c 'SELECT 1' -U postgres -h 127.0.0.1
6
- interval : 2s
7
- retries : 3
8
- timeout : 2s
5
+ test : [ "CMD-SHELL", "pg_isready" ]
6
+ interval : 1s
7
+ timeout : 5s
8
+ retries : 100
9
9
build :
10
10
context : ./pgml-extension/
11
11
dockerfile : Dockerfile.local
@@ -16,7 +16,8 @@ services:
16
16
- infinity
17
17
dashboard :
18
18
depends_on :
19
- - postgres
19
+ postgres :
20
+ condition : service_healthy
20
21
build :
21
22
context : ./pgml-dashboard/
22
23
dockerfile : Dockerfile
@@ -25,9 +26,7 @@ services:
25
26
environment :
26
27
ROCKET_ADDRESS : 0.0.0.0
27
28
DATABASE_URL : postgres://postgres:postgres@postgres:5432/pgml_development
28
- command :
29
- - cargo
30
- - run
29
+ command : bash -c "sqlx migrate run && cargo run"
31
30
docs :
32
31
build :
33
32
context : ./pgml-docs/
Original file line number Diff line number Diff line change 1
1
FROM rust:1
2
2
COPY . /app
3
3
WORKDIR /app
4
- RUN cargo build
4
+ RUN cargo install sqlx-cli
You can’t perform that action at this time.
0 commit comments