generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-test.yml
71 lines (65 loc) · 1.59 KB
/
docker-compose-test.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
# Runs the services needed for integation testing
# or the subset of services needed by the application if it is connected to `dev` HMPPS APIs
services:
redis:
image: redis:7
networks:
- hmpps
container_name: inc-ui-redis
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- '6379:6379'
minio:
image: minio/minio
networks:
- hmpps
container_name: inc-ui-minio
environment:
- MINIO_ROOT_USER=incentives
- MINIO_ROOT_PASSWORD=incentives
- MINIO_SITE_REGION=eu-west-1
ports:
- '9000:9000'
- '9001:9001'
command:
- server
- --address
- :9000
- --console-address
- :9001
- /data
minio-init:
image: minio/mc
networks:
- hmpps
container_name: inc-ui-minio-init
depends_on:
- minio
environment:
- MINIO_ROOT_USER=incentives
- MINIO_ROOT_PASSWORD=incentives
- MINIO_SITE_REGION=eu-west-1
volumes:
- $PWD/server/testData/s3Bucket:/tmp/s3Bucket
entrypoint: |
/bin/sh -c "
echo Provisioning bucket with minio
until mc config host add local http://minio:9000 $$MINIO_ROOT_USER $$MINIO_ROOT_PASSWORD; do
echo 'Waiting for http://minio:9000'
sleep 3
done
mc mb --region eu-west-1 --ignore-existing local/incentives
mc mirror --overwrite /tmp/s3Bucket local/incentives
exit 0
"
wiremock:
image: wiremock/wiremock:3x
networks:
- hmpps
container_name: inc-ui-wiremock
restart: always
ports:
- '9091:8080'
networks:
hmpps: