This repository was archived by the owner on Oct 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
111 lines (105 loc) · 3.2 KB
/
Copy pathdocker-compose.yml
File metadata and controls
111 lines (105 loc) · 3.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
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
services:
certificate-grpc:
build:
context: ./certificate-grpc
container_name: certificate-grpc
ports:
- "50053:50053"
environment:
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- POSTGRES_DB=${CERTIFICATE_DB_NAME}
- POSTGRES_USER=${CERTIFICATE_DB_USER}
- POSTGRES_PASSWORD=${CERTIFICATE_DB_PASSWORD}
- ISSUER_COMMON_NAME=${ISSUER_COMMON_NAME}
- ISSUER_ORGANIZATION=${ISSUER_ORGANIZATION}
- ISSUER_ORGANIZATIONAL_UNIT=${ISSUER_ORGANIZATIONAL_UNIT}
- ISSUER_COUNTRY=${ISSUER_COUNTRY}
- ISSUER_STATE=${ISSUER_STATE}
- ISSUER_LOCALITY=${ISSUER_LOCALITY}
- CERTIFICATE_VALIDITY_DAYS=${CERTIFICATE_VALIDITY_DAYS}
volumes:
- ./certificate_private_key.pem:/app/issuer_private_key.pem
- ./certificate_public_key.pem:/app/issuer_public_key.pem
encrypter-grpc:
build:
context: ./encrypter-grpc
container_name: encrypter-grpc
ports:
- "50051:50051"
environment:
- DECRYPTER_GRPC_HOST=decrypter-grpc
- DECRYPTER_GRPC_PORT=50052
volumes:
- ./encrypter_private_key.pem:/app/company_private_key.pem
- ./encrypter_public_key.pem:/app/company_public_key.pem
- ./decrypter_public_key.pem:/app/tender_public_key.pem
depends_on:
- decrypter-grpc
decrypter-grpc:
build:
context: ./decrypter-grpc
container_name: decrypter-grpc
ports:
- "50052:50052"
environment:
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- POSTGRES_DB=${DECRYPTER_DB_NAME}
- POSTGRES_USER=${DECRYPTER_DB_USER}
- POSTGRES_PASSWORD=${DECRYPTER_DB_PASSWORD}
- CERTIFICATE_GRPC_HOST=certificate-grpc
- CERTIFICATE_GRPC_PORT=50053
volumes:
- ./decrypter_private_key.pem:/app/tender_private_key.pem
- ./decrypter_public_key.pem:/app/tender_public_key.pem
- ./volumes/decrypter-data:/app/data
depends_on:
- certificate-grpc
bidder-app:
build:
context: ./bidder-app
container_name: bidder-app
ports:
- "8502:8502"
depends_on:
- encrypter-grpc
environment:
- ENCRYPTER_GRPC_HOST=encrypter-grpc
- ENCRYPTER_GRPC_PORT=50051
admin-app:
build:
context: ./admin-app
container_name: admin-app
ports:
- "8501:8501"
depends_on:
- decrypter-grpc
environment:
- DECRYPTER_GRPC_HOST=decrypter-grpc
- DECRYPTER_GRPC_PORT=50052
certificate-app:
build:
context: ./certificate-app
container_name: certificate-app
ports:
- "8503:8503"
depends_on:
- certificate-grpc
environment:
- CERTIFICATE_GRPC_HOST=certificate-grpc
- CERTIFICATE_GRPC_PORT=50053
postgres:
image: postgres:latest
container_name: postgres
env_file:
- .env
environment:
- POSTGRES_PASSWORD=${POSTGRES_SUPERUSER_PASSWORD}
ports:
- "5432:5432"
volumes:
- ./postgres/init-multiple-databases.sh:/docker-entrypoint-initdb.d/init-multiple-databases.sh
- ./postgres/certificate_schema.sql:/docker-entrypoint-initdb.d/certificate_schema.sql
- ./postgres/decrypter_schema.sql:/docker-entrypoint-initdb.d/decrypter_schema.sql
- ./volumes/postgres-data:/var/lib/postgresql