generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (48 loc) · 1.18 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
version: '3.1'
services:
redis:
image: 'redis:7.4'
networks:
- hmpps
container_name: redis
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- '6379:6379'
hmpps-activities-management-api:
image: quay.io/hmpps/hmpps-activities-management-api:latest
networks:
- hmpps
container_name: hmpps-activities-management-api
restart: always
ports:
- "8080:8080"
env_file:
- .env
environment:
- SPRING_PROFILES_ACTIVE=local
- SPRING_DATASOURCE_URL=jdbc:postgresql://host.docker.internal/activities-management-db
# For the API to seed & interact with - there is no direct connection from the UI service
activities-db:
image: postgres
networks:
- hmpps
container_name: activities-db
restart: always
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=activities-management
- POSTGRES_USER=activities-management
- POSTGRES_DB=activities-management-db
# Needed only when running cypress tests
wiremock:
image: wiremock/wiremock
networks:
- hmpps
container_name: wiremock
restart: always
ports:
- "9091:8080"
networks:
hmpps: