-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.db.dev.yaml
More file actions
59 lines (53 loc) · 1.27 KB
/
Copy pathcompose.db.dev.yaml
File metadata and controls
59 lines (53 loc) · 1.27 KB
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
#file: noinspection SpellCheckingInspection
name: uttae
services:
postgres:
image: 'postgres:17.10'
env_file:
- ./.env.dev
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
healthcheck:
test: ["CMD-SHELL", "pg_isready -h localhost -p 5432 -U $${DB_USER} -d $${DB_NAME}"]
interval: 10s
timeout: 5s
retries: 10
ports:
- '5433:5432'
volumes:
- postgres-data:/var/lib/postgresql/data
redis:
image: 'redis:8.6.2'
command: ["redis-server", "--notify-keyspace-events", "Ex"]
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 10
ports:
- '6379:6379'
volumes:
- redis-data:/data
mongodb:
image: 'mongo:8.0.21'
env_file:
- ./.env.dev
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
MONGO_INITDB_DATABASE: ${MONGO_DB}
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 10
ports:
- '27017:27017'
volumes:
- mongodb-data:/data/db
volumes:
postgres-data:
redis-data:
mongodb-data: