-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
66 lines (61 loc) · 1.58 KB
/
docker-compose.yml
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
version: '2.1'
services:
testrunner:
build:
context: ./
dockerfile: Dockerfile
image: eventq
container_name: testrunner
command: bash -c "./script/container_loop.sh"
depends_on:
redis:
condition: service_healthy
rabbitmq:
condition: service_healthy
localstack:
condition: service_healthy
volumes:
- ./:/src
environment:
- AWS_ACCESS_KEY_ID=mock_id
- AWS_SECRET_ACCESS_KEY=mock_password
- AWS_REGION=eu-west-1
- AWS_SQS_ENDPOINT=http://localstack:4566
- AWS_SNS_ENDPOINT=http://localstack:4566
- RABBITMQ_ENDPOINT=rabbitmq
- REDIS_ENDPOINT=redis://redis:6379
# env_file:
# - ../.aws.env
rabbitmq:
image: rabbitmq:3.12.10
container_name: rabbitmq
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 10s
timeout: 5s
retries: 10
redis:
image: redis:alpine
container_name: eventq_redis
ports:
- "6379:6379"
healthcheck:
test: redis-cli ping || exit 1
interval: 10s
timeout: 5s
retries: 10
localstack:
# changes to multi region support after this version break tests
image: localstack/localstack:stable
container_name: localstack
environment:
- SQS_ENDPOINT_STRATEGY=off
- LOCALSTACK_HOST=localstack
ports:
- "8085:8080"
- "4566:4566"
healthcheck:
test: if [ $$(curl -s -o /dev/null -w "%{http_code}" http://localhost:4566/_localstack/health?reload) -ne 200 ]; then exit 1; fi
interval: 10s
timeout: 5s
retries: 10