-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
132 lines (123 loc) · 3.33 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
version: "3.1"
services:
postgres:
image: postgres
restart: always
ports:
- "5432:5432"
networks:
- hmpps
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: dev
tmpfs:
- /var/lib/postgresql
redis:
image: "redis:6.2.3-alpine"
networks:
- hmpps
container_name: redis
ports:
- "6379:6379"
hmpps-auth:
image: quay.io/hmpps/hmpps-auth:latest
networks:
- hmpps
container_name: hmpps-auth
depends_on: [nomis-user-roles-api]
ports:
- "9090:8080"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/auth/health" ]
environment:
- SPRING_PROFILES_ACTIVE=dev,nomis
- APPLICATION_AUTHENTICATION_UI_ALLOWLIST=0.0.0.0/0
- NOMIS_ENDPOINT_URL=http://nomis-user-roles-api:8080
nomis-user-roles-api:
image: quay.io/hmpps/nomis-user-roles-api:latest
networks:
- hmpps
container_name: nomis-user-roles-api
ports:
- "8102:8080"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/health/ping" ]
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=dev
- API_BASE_URL_OAUTH=http://hmpps-auth:8080/auth
offender-assessment-api:
image: quay.io/hmpps/offender-assessments-api:latest
restart: always
networks:
- hmpps
container_name: offender-assessment-api
depends_on: [hmpps-auth]
ports:
- "8081:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=dev
- OAUTH_ENDPOINT_URL=http://oauth:9090/auth
hmpps-assessment-api:
image: quay.io/hmpps/hmpps-assessments-api:latest
restart: always
networks:
- hmpps
container_name: hmpps-assessment-api
depends_on: [hmpps-auth]
ports:
- "8082:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=dev
- OAUTH_ENDPOINT_URL=http://oauth:9090/auth
- LOGGING_LEVEL_ORG_SPRINGFRAMEWORK_SECURITY=DEBUG
gotenberg:
image: thecodingmachine/gotenberg:7
restart: always
networks:
- hmpps
ports:
- "9099:3000"
localstack:
container_name: localstack
image: localstack/localstack
ports:
- "4566:4566" # LocalStack Gateway
- "4510-4559:4510-4559" # external services port range
networks:
- hmpps
environment:
- LOCALSTACK_SERVICES=${LOCALSTACK_SERVICES-sns,s3}
- DEBUG=${DEBUG-}
- PERSISTENCE=${PERSISTENCE-}
- LAMBDA_EXECUTOR=${LAMBDA_EXECUTOR-}
- DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
localstack-cli:
image: xueshanf/awscli
networks:
- hmpps
command:
- /bin/sh
- -c
- |
sleep 30
aws --version
aws --endpoint-url=http://localstack:4566 s3 mb s3://hmpps-assessments-s3
aws --endpoint-url=http://localstack:4566 sns create-topic --name hmpps-assessments-topic
environment:
AWS_ACCESS_KEY_ID: UNSET
AWS_SECRET_ACCESS_KEY: UNSET
AWS_DEFAULT_REGION: 'eu-west-2'
depends_on:
- localstack
networks:
hmpps: