-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (47 loc) · 1.47 KB
/
docker-compose.yml
File metadata and controls
51 lines (47 loc) · 1.47 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
name: di-auth-shared
# Services for running an authentication stack locally
# N.B. any changes to the localstack/redis/dynamodb containers must be reflected in
# .github/workflows/pre-merge-checks.yml
services:
aws:
image: localstack/localstack:4.6.0@sha256:5a97e0f9917a3f0d9630bb13b9d8ccf10cbe52f33252807d3b4e21418cc21348
restart: no
environment:
SERVICES: sqs, sns, kms, ssm, s3, secretsmanager
GATEWAY_LISTEN: 0.0.0.0:45678
LOCALSTACK_HOST: localhost:45678
TEST_AWS_ACCOUNT_ID: 123456789012
DEBUG: "1"
extra_hosts:
- "notify.internal:host-gateway"
- "subscriber.internal:host-gateway"
networks:
- di-authentication-api-net
ports:
- 45678:45678
redis:
image: redis:6.2.19-alpine@sha256:7fe72c486b910f6b1a9769c937dad5d63648ddee82e056f47417542dd40825bb
restart: no
healthcheck:
test: '[[ $$(redis-cli ping 2> /dev/null) == "PONG" ]] || exit 1'
interval: 5s
timeout: 1m
ports:
- 6379:6379
networks:
- di-authentication-api-net
dynamodb:
command: "-jar DynamoDBLocal.jar -sharedDb -dbPath ."
restart: no
working_dir: /home/dynamodblocal
image: amazon/dynamodb-local:3.0.0@sha256:2fed5e3a965a4ba5aa6ac82baec57058b5a3848e959d705518f3fd579a77e76b
healthcheck:
test: curl http://localhost:8000
interval: 5s
timeout: 1m
ports:
- 8000:8000
networks:
- di-authentication-api-net
networks:
di-authentication-api-net: