This repository has been archived by the owner on Nov 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose-windows.yml
85 lines (80 loc) · 2.16 KB
/
docker-compose-windows.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
77
78
79
80
81
82
83
84
85
version: "3"
services:
prisoner-offender-search:
image: quay.io/hmpps/prisoner-offender-search:latest
networks:
- hmpps
container_name: prisoner-offender-search
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-server:8080/auth
- API_BASE_URL_NOMIS=http://prison-api:8080
- SQS_ENDPOINT_URL=http://localstack:4566
- OAUTH_CLIENT_ID=prisoner-offender-search-client
- OAUTH_CLIENT_SECRET=clientsecret
pos-db:
image: postgres:15
networks:
- hmpps
container_name: pos-db
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=pos
- POSTGRES_USER=pos
- POSTGRES_DB=pos
-
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.14.2
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:
- "localstack-vol:/tmp/localstack" # use a volume, not a path
- $PWD/src/test/resources/localstack:/docker-entrypoint-initaws.d
networks:
hmpps:
volumes:
localstack-vol: # volume mounts (vs bind mounts) are advised when running on Windows