-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 903 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (36 loc) · 903 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.8'
services:
postgres:
image: pgvector/pgvector:pg16
container_name: demo_postgres
environment:
POSTGRES_DB: demo_db
POSTGRES_USER: demo_user
POSTGRES_PASSWORD: demo_pass
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U demo_user -d demo_db"]
interval: 10s
timeout: 5s
retries: 5
mongodb:
image: mongodb/mongodb-community-server:latest
container_name: demo_mongodb
environment:
MONGO_INITDB_ROOT_USERNAME: demo_user
MONGO_INITDB_ROOT_PASSWORD: demo_pass
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 5
volumes:
postgres_data:
mongodb_data: