-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
148 lines (138 loc) · 4.41 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
services:
documentation:
build:
context: ./documentation
dockerfile: Dockerfile
ports:
- 3002:3002
environment:
- PORT=3002
- DOCS_URL=http://0.0.0.0
- DOCS_BASE_URL=/
volumes:
- ./documentation:/app
- /app/node_modules
vckit-api:
image: ghcr.io/uncefact/project-vckit:sha-8a1a7ea@sha256:21414e4cdfd6b045f57667408256d4951c1d14d0648151ededf3107716b67b5f
env_file:
- local.env
ports:
- 3332:3332
depends_on:
- db
db:
image: postgres:16-alpine
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=vckit
volumes:
- vckit-data:/var/lib/postgresql/data
restart: always
storage-service:
image: ghcr.io/uncefact/project-identity-resolver:sha-e87d4fc@sha256:54ee7f3adaab9650052b99dbe19b3f5bbd2aa2fe7588410c5f66d1941e3752ce
ports:
- 3334:3334
environment:
- API_VERSION=v1
- PROTOCOL=http
- DOMAIN=localhost
- PORT=3334
- AVAILABLE_BUCKETS=verifiable-credentials,private-verifiable-credentials,epcis-events
- STORAGE_TYPE=local
identity-resolver-service:
# Replace with local or deployed image
image: ghcr.io/pyx-industries/pyx-identity-resolver:sha-fa017fb-local@sha256:cd514863bdaf65ab1b47b8e71669a0245b041c861285a83fa7cf0a65789d4e58
ports:
- '3000:3000'
environment:
- OBJECT_STORAGE_ENDPOINT=identity-resolver-service-object-store
- OBJECT_STORAGE_PORT=9000
- OBJECT_STORAGE_USE_SSL=false
- OBJECT_STORAGE_ACCESS_KEY=minioadmin
- OBJECT_STORAGE_SECRET_KEY=minioadmin
- OBJECT_STORAGE_BUCKET_NAME=idr-bucket-1
- OBJECT_STORAGE_PATH_STYLE=true
- IDENTIFIER_PATH=identifiers
- API_KEY=test123
- APP_ENDPOINT=http://localhost:3000
- APP_NAME=IDR-1
- RESOLVER_DOMAIN=http://localhost:3000
- LINK_TYPE_VOC_DOMAIN=http://localhost:3000/voc
- PORT=3000
depends_on:
- identity-resolver-service-object-store
identity-resolver-service-object-store:
image: quay.io/minio/minio:RELEASE.2024-08-17T01-24-54Z-cpuv1
command: server /data --console-address ":9090"
ports:
- '9000:9000'
- '9090:9090'
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
volumes:
- ./minio_data/identity-resolver-service-object-store:/data
mock-global-gs1-resolver:
# Replace with local or deployed image
image: ghcr.io/pyx-industries/pyx-identity-resolver:sha-fa017fb-local@sha256:cd514863bdaf65ab1b47b8e71669a0245b041c861285a83fa7cf0a65789d4e58
ports:
- '3001:3001'
environment:
- OBJECT_STORAGE_ENDPOINT=mock-global-gs1-resolver-object-store
- OBJECT_STORAGE_PORT=9000
- OBJECT_STORAGE_USE_SSL=false
- OBJECT_STORAGE_ACCESS_KEY=minioadmin
- OBJECT_STORAGE_SECRET_KEY=minioadmin
- OBJECT_STORAGE_BUCKET_NAME=idr-bucket-2
- OBJECT_STORAGE_PATH_STYLE=true
- IDENTIFIER_PATH=identifiers
- API_KEY=test456
- APP_ENDPOINT=http://localhost:3001
- APP_NAME=IDR-2
- RESOLVER_DOMAIN=http://localhost:3001
- LINK_TYPE_VOC_DOMAIN=http://localhost:3001/voc
- PORT=3001
depends_on:
- mock-global-gs1-resolver-object-store
mock-global-gs1-resolver-object-store:
image: quay.io/minio/minio:RELEASE.2024-08-17T01-24-54Z-cpuv1
command: server /data --console-address ":9091"
ports:
- '9001:9000'
- '9091:9090'
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
volumes:
- ./minio_data/mock-global-gs1-resolver-object-store:/data
seeding-data:
image: alpine:3.20.3
environment:
# IDR service environment variables
- IDR_SERVICE_HOST=identity-resolver-service
- IDR_SERVICE_PORT=3000
- IDR_SERVICE_API_KEY=test123
# Mock GS1 service environment variables
- IDR_SERVICE_DOMAIN=http://localhost:3000
- MOCK_GS1_SERVICE_HOST=mock-global-gs1-resolver
- MOCK_GS1_SERVICE_PORT=3001
- MOCK_GS1_SERVICE_API_KEY=test456
command:
- /bin/sh
- -c
- |
if [ "$SEEDING" = "true" ]; then
apk add curl jq && \
./seeding/idr-data.sh
./seeding/mock-gs1-data.sh
fi
volumes:
- ./seeding:/seeding
depends_on:
- identity-resolver-service
- mock-global-gs1-resolver
volumes:
vckit-data: