-
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathcompose.yml
More file actions
71 lines (66 loc) · 1.72 KB
/
compose.yml
File metadata and controls
71 lines (66 loc) · 1.72 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
63
64
65
66
67
68
69
70
71
services:
redis:
image: redis:alpine
ports:
- 6379:6379
command: redis-server --appendonly yes
redis-insight:
image: redislabs/redisinsight:latest
ports:
- 8001:8001
environment:
- REDIS_URI=redis://redis:6379
postgres:
image: postgres:16-alpine
ports:
- 5432:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: session_test
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
mysql:
image: mysql:8
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: session_test
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 5
dynamodb-local:
image: amazon/dynamodb-local
ports:
- 8000:8000
command: "-jar DynamoDBLocal.jar -inMemory -sharedDb"
working_dir: /home/dynamodblocal
healthcheck:
test:
[
"CMD-SHELL",
'[ "$(curl -s -o /dev/null -I -w ''%{http_code}'' http://localhost:8000)" == "400" ]',
]
interval: 10s
timeout: 10s
retries: 10
dynamodb-local-setup:
depends_on:
dynamodb-local:
condition: service_healthy
image: amazon/aws-cli
volumes:
- "./tests_helpers/dynamodb_schemas:/tmp/dynamo"
environment:
AWS_ACCESS_KEY_ID: "accessKeyId"
AWS_SECRET_ACCESS_KEY: "secretAccessKey"
AWS_REGION: "us-east-1"
entrypoint:
- bash
command: '-c "for f in /tmp/dynamo/*.json; do aws dynamodb create-table --endpoint-url "http://dynamodb-local:8000" --cli-input-json file://"$${f#./}"; done"'