-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathdocker-compose.gcp-postgres-test.yaml
62 lines (59 loc) · 1.59 KB
/
docker-compose.gcp-postgres-test.yaml
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
services:
gcs:
container_name: gcs-pg-test
hostname: gcs
image: fsouza/fake-gcs-server:${FAKE_GCS_SERVER_VERSION}
entrypoint: sh -c "apk add --no-cache curl && mkdir -p /data/mlflow && /bin/fake-gcs-server -data /data -scheme http"
ports:
- "4443:4443"
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://localhost:4443/storage/v1/b || exit 1"]
interval: 5s
timeout: 10s
retries: 3
start_period: 5s
networks:
- gcp_pg_test_nw
postgres:
image: "postgres:${POSTGRES_VERSION}"
container_name: mlflow-gcp-postgres-db
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 5s
timeout: 10s
retries: 3
restart: always
networks:
- gcp_pg_test_nw
mlflow:
container_name: mlflow-gcp-pg-test
build:
context: .
dockerfile: Dockerfile
command: "mlflow server --backend-store-uri=postgresql:// --default-artifact-root=gs://mlflow/ --host=0.0.0.0 --port=8080"
environment:
MLFLOW_FLASK_SERVER_SECRET_KEY: 0123456789
GOOGLE_CLOUD_PROJECT: mlflow
STORAGE_EMULATOR_HOST: http://gcs:4443
PGHOST: postgres
PGPORT: 5432
PGDATABASE: postgres
PGUSER: postgres
PGPASSWORD: postgres
ports:
- "8080:8080"
networks:
- gcp_pg_test_nw
depends_on:
gcs:
condition: service_healthy
postgres:
condition: service_healthy
networks:
gcp_pg_test_nw:
driver: bridge