-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
92 lines (87 loc) · 2.25 KB
/
docker-compose.yaml
File metadata and controls
92 lines (87 loc) · 2.25 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
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
services:
cpf-postgres:
image: postgres:18-alpine
container_name: cpf-tp-postgres
networks:
cpf-net:
aliases:
- postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: dbprov
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d dbprov -h 127.0.0.1 -p 5432 || exit 1"]
interval: 10s
timeout: 5s
retries: 10
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- 5432:5432
cpf-neo4j:
image: neo4j:2026.02.2-trixie
container_name: cpf-store-neo4j
networks:
- cpf-net
environment:
NEO4J_dbms_usage__report_enabled: false
NEO4J_AUTH: neo4j/cpm_neo4j_pwd
ports:
- "8082:7474"
- "7682:7687"
volumes:
- neo4j_data:/data
healthcheck:
test: ["CMD-SHELL", "cypher-shell -a bolt://localhost:7687 -u neo4j -p cpm_neo4j_pwd 'RETURN 1' || exit 1"]
interval: 10s
timeout: 10s
retries: 12
cpf-store:
build:
context: .
dockerfile: Dockerfile
container_name: cpf-store-app
networks:
- cpf-net
depends_on:
cpf-neo4j:
condition: service_healthy
cpf-trusted-party:
condition: service_healthy
# healthcheck:
# timeout: 5s
# retries: 10
# test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider localhost:8080/health/ || exit 1"]
environment:
NEO4J_URI: bolt://cpf-neo4j:7687
NEO4J_USERNAME: neo4j
NEO4J_PASSWORD: cpm_neo4j_pwd
STORE_URL: ${STORE_URL:?STORE_URL must be set (e.g. http://localhost:8081/api/v1/)}
TRUSTED_PARTY_URL: http://cpf-trusted-party:8020/api/v1/
ports:
- "8081:8080"
cpf-trusted-party:
build:
context: ./../CPF-Search-API/prov-storage/
dockerfile: Dockerfile.TrustedParty
container_name: cpf-trusted-party
networks:
- cpf-net
ports:
- 8083:8020
depends_on:
cpf-postgres:
condition: service_healthy
restart: true
healthcheck:
timeout: 5s
retries: 10
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider localhost:8020/health/ || exit 1"]
volumes:
postgres_data:
neo4j_data:
networks:
cpf-net:
name: cpf-net
driver: bridge