forked from ministryofjustice/prisoner-offender-search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (73 loc) · 2.03 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
67
68
69
70
71
72
73
74
75
76
version: "3"
services:
prisoner-offender-search:
image: quay.io/hmpps/prisoner-offender-search:latest
networks:
- hmpps
container_name: prisoner-offender-search
depends_on:
- localstack
- prisonapi
- oauth
ports:
- "8080:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=dev
- API_BASE_URL_OAUTH=http://oauth:8080/auth
- API_BASE_URL_NOMIS=http://prisonapi:8080
- SQS_ENDPOINT_URL=http://localstack:4566
- ELASTICSEARCH_HOST=localstack
- ELASTICSEARCH_PROXY_URL=http://localstack:4571
- OAUTH_CLIENT_ID=prisoner-offender-search-client
- OAUTH_CLIENT_SECRET=clientsecret
prisonapi:
image: quay.io/hmpps/prison-api:latest
networks:
- hmpps
container_name: prisonapi
depends_on:
- oauth
ports:
- "8093:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=nomis-hsqldb
oauth:
image: quay.io/hmpps/hmpps-auth:latest
networks:
- hmpps
container_name: oauth
ports:
- "8090:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/auth/health"]
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=dev
localstack:
image: localstack/localstack:0.12.10
networks:
- hmpps
container_name: localstack
ports:
- "4566-4597:4566-4597"
- 8999:8080
environment:
- SERVICES=sqs,sns,es
- ES_PORT_EXTERNAL=4571
- DEBUG=${DEBUG- }
- DATA_DIR=/tmp/localstack/data
- DOCKER_HOST=unix:///var/run/docker.sock
- DEFAULT_REGION=eu-west-2
- HOSTNAME_EXTERNAL=${ES_HOSTNAME:-localstack}
volumes:
- "${TMPDIR:-/tmp/localstack}:/tmp/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
- $PWD/src/test/resources/localstack:/docker-entrypoint-initaws.d
networks:
hmpps: