-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.dev.yaml
60 lines (57 loc) · 1.48 KB
/
docker-compose.dev.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
services:
dev_db:
image: postgres
ports:
- "5432:5432"
user: "postgres"
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
volumes:
- ./scripts/tools/init-db-pgres.sql:/docker-entrypoint-initdb.d/init-db-pgres.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "db_prod"]
interval: 10s
timeout: 30s
retries: 5
start_period: 40s
cpu_dev_db:
image: postgres
ports:
- "5433:5432"
user: "postgres"
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
volumes:
- ./scripts/tools/init-db-pgres.sql:/docker-entrypoint-initdb.d/init-db-pgres.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "db_prod"]
interval: 10s
timeout: 30s
retries: 5
start_period: 40s
localstack:
image: localstack/localstack
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