-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
42 lines (40 loc) · 903 Bytes
/
compose.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
services:
db:
image: postgres:16.2
restart: always
container_name: cards-mvp-db
user: postgres
ports:
- 5432:5432
healthcheck:
test: [ "CMD", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5
environment:
- POSTGRES_DB=cards-mvp
- POSTGRES_PASSWORD=password
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
redis:
image: redis:7.0.15
restart: always
container_name: cards-mvp-redis
ports:
- 6379:6379
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 5
# redisinsight:
# image: redislabs/redisinsight:latest
# restart: always
# depends_on:
# - redis
# container_name: cards-mvp-redisinsight
# ports:
# - 8001:8001
# environment:
# - REDIS_HOST=redis
# - REDIS_PORT=6379