forked from mongodb/laravel-mongodb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (29 loc) · 927 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
30 lines (29 loc) · 927 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
services:
app:
tty: true
build: .
working_dir: /var/www/laravel-mongodb
command: "bash -c 'composer install && composer run test'"
environment:
MONGODB_URI: 'mongodb://mongodb/'
volumes:
- .:/var/www/laravel-mongodb
depends_on:
mongodb:
condition: service_healthy
mongodb:
container_name: mongodb
image: mongodb/mongodb-atlas-local:8
ports:
- "27017:27017"
env_file:
- path: .env
required: false
environment:
VOYAGE_API_KEY: ${VOYAGE_API_KEY:-}
EMBEDDING_PROVIDER_ENDPOINT: ${EMBEDDING_PROVIDER_ENDPOINT:-https://api.voyageai.com/v1/embeddings}
healthcheck:
test: mongosh --quiet --eval 'db.runCommand("ping").ok'
interval: 10s
timeout: 10s
retries: 5