-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 810 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (31 loc) · 810 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
services:
app:
build:
context: .
ports:
- "8080:8080"
environment:
- GOOGLE_CLOUD_PROJECT=local-dev
- GOOGLE_CLOUD_LOCATION=us-central1
- FIRESTORE_EMULATOR_HOST=firestore:8080
- GOOGLE_GENAI_USE_VERTEXAI=FALSE
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
- LOG_LEVEL=DEBUG
depends_on:
firestore:
condition: service_healthy
volumes:
- ./src:/app/src
firestore:
image: google/cloud-sdk:emulators
command: gcloud emulators firestore start --host-port=0.0.0.0:8080 --quiet
ports:
- "8081:8080"
healthcheck:
test: ["CMD", "bash", "-c", "echo > /dev/tcp/localhost/8080"]
interval: 2s
timeout: 5s
retries: 10
start_period: 5s
environment:
- CLOUDSDK_CORE_LOG_LEVEL=ERROR