-
Notifications
You must be signed in to change notification settings - Fork 582
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
62 lines (57 loc) · 1.52 KB
/
docker-compose.yaml
File metadata and controls
62 lines (57 loc) · 1.52 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
58
59
60
61
62
networks:
default:
name: care
services:
db:
image: postgres:alpine
restart: unless-stopped
env_file:
- ./docker/.prebuilt.env
volumes:
- postgres-data:/var/lib/postgresql/data
- ${BACKUP_DIR:-./care-backups}:/backups
ports:
- "5433:5432"
healthcheck:
test: ["CMD", "pg_isready", "-U", "${POSTGRES_USER:-postgres}"]
interval: 10s
retries: 5
start_period: 10s
timeout: 10s
redis:
image: redis:8-alpine
restart: unless-stopped
volumes:
- redis-data:/data
ports:
- "6380:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
retries: 5
start_period: 10s
timeout: 10s
minio:
image: minio/minio:latest
restart: unless-stopped
environment:
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY:-minioadmin}
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY:-minioadmin}
AWS_DEFAULT_REGION: ap-south-1 # To maintain compatibility with existing apps
volumes:
- "./care/media/minio:/data"
- "./docker/minio/init-script.sh:/init-script.sh:ro" # Mount the init script
- "./docker/minio/entrypoint.sh:/entrypoint.sh:ro" # Mount the entrypoint script
ports:
- "9100:9000" # S3 API
- "9001:9001" # Web Console
entrypoint: ["/entrypoint.sh"]
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/ready"]
interval: 10s
retries: 5
start_period: 10s
timeout: 10s
volumes:
postgres-data:
redis-data: