-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathdocker-compose.hawk-db.yaml
More file actions
46 lines (43 loc) · 1.11 KB
/
docker-compose.hawk-db.yaml
File metadata and controls
46 lines (43 loc) · 1.11 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
services:
dev_db:
image: public.ecr.aws/docker/library/postgres:16.10-alpine3.22
ports:
- "5432:5432"
user: "postgres"
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
volumes:
- hawk_db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "db_prod"]
interval: 10s
timeout: 30s
retries: 5
start_period: 40s
localstack:
image: public.ecr.aws/localstack/localstack:4.9
depends_on:
dev_db:
condition: service_healthy
ports:
- "127.0.0.1:4566:4566"
- "127.0.0.1:4571:4571"
environment:
- SERVICES=kms,s3,secretsmanager,sqs,sns
- DEFAULT_REGION=us-east-1
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
healthcheck:
test: >-
sleep 10 &&
awslocal sqs list-queues &&
awslocal s3 ls &&
awslocal kms list-keys
interval: 5s
timeout: 25s
retries: 10
volumes:
- ./scripts/tools/init-localstack.sh:/etc/localstack/init/ready.d/init-localstack.sh
volumes:
hawk_db_data: