Repository navigation
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
75 lines (70 loc) · 2.2 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
75 lines (70 loc) · 2.2 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
services:
redis:
image: redis:7
postgres:
image: postgres:16
ports:
- 5432:5432
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: "postgres"
service:
build: https://github.com/izertis/identfy-entity-service.git
ports:
- "8001:8080"
environment:
- NODE_ENV=production # It can also be changed to "conformance" environment, which uses EBSI's conformance environment
- BACKEND_URL=${PUBLIC_URL}
# Default user for service. Change on production environment
- BACKEND_USER=service
- BACKEND_PASS=service
backend:
build:
context: https://github.com/izertis/identfy-entity-backend.git
image: identfy-backend
environment:
BACKEND_DOMAIN: ${PUBLIC_URL}
ALLOWED_HOSTS: "*"
DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres
VC_SERVICE_URL: http://service:8080/api
# Example Issuer configuration. Change on production environment
DID: ${DID}
# Only for testing purpouse. Change on production environment
DEVELOPER_MOCKUP_ENTITIES: True
EBSI_DIDR_URL: "https://api-pilot.ebsi.eu/did-registry/v5/identifiers" # For conformance environment it needs to be changed
EBSI_TIR_URL: "https://api-pilot.ebsi.eu/trusted-issuers-registry/v5/issuers" # For conformance environment it needs to be changed
# Default value. Change on production environment
ports:
- 8000:8000
working_dir: /code
healthcheck:
test: wget --no-verbose --tries=1 --spider ${PUBLIC_URL}/swagger/
interval: 5s
timeout: 5s
retries: 5
depends_on:
- postgres
- service
- redis
celery:
image: identfy-backend
command: celery -A project worker -l info -E --concurrency=2
environment:
- REDIS_HOST=redis
- BACKEND_DOMAIN=${PUBLIC_URL}
- VC_SERVICE_URL=http://service:8080/api
- DID=${DID}
- REDIS_BROKER_URL=redis://redis:6379/0
- DEBUG=1
working_dir: /code
depends_on:
- redis
- postgres
flower:
image: mher/flower
environment:
- CELERY_BROKER_URL=redis://redis:6379/0
- FLOWER_PORT=8888
ports:
- 8888:8888