-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (50 loc) · 1.47 KB
/
docker-compose.yml
File metadata and controls
50 lines (50 loc) · 1.47 KB
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
version: "3"
services:
localstack:
image: localstack/localstack:latest
networks:
- hmpps
container_name: hmpps-workload-localstack
ports:
- "4566:4566"
- "4571:4571"
- 8999:8080
environment:
- SERVICES=s3,sqs,sns
- DEBUG=${DEBUG- }
- DOCKER_HOST=unix:///var/run/docker.sock
- DEFAULT_REGION=eu-west-2
volumes:
- "${TMPDIR:-/tmp/localstack}:/var/lib/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
- $PWD/test/integration/resources:/etc/localstack/init/ready.d
hmpps-workload:
image: quay.io/hmpps/hmpps-workload:latest
networks:
- hmpps
container_name: hmpps-workload
ports:
- "8081:8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health/ping"]
environment:
- SERVER_PORT=8080
- SPRING_PROFILES_ACTIVE=dev,docker
- DATABASE_ENDPOINT=postgres:5432
- HMPPS_SQS_LOCALSTACK_URL=http://localstack:4566
entrypoint: ["/bin/sh", "-c" , "sleep 10 && java -javaagent:/app/agent.jar -jar /app/app.jar"]
depends_on:
- "postgres"
postgres:
image: postgres:14
networks:
- hmpps
container_name: hmpps-workload-postgres
restart: always
ports:
- '5432:5432'
environment:
- POSTGRES_PASSWORD=dev
- POSTGRES_USER=root
networks:
hmpps: