-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-trust.yml
37 lines (37 loc) · 1.2 KB
/
docker-compose-trust.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
services:
mongodb:
image: mongo:7
restart: on-failure
ports:
- ${MONGO_PORT:-27017}:27017
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
timeout: 5s
retries: 5
environment:
MONGO_INITDB_ROOT_USERNAME: ${TRUST_MONGO_ROOT_USER}
MONGO_INITDB_ROOT_PASSWORD: ${TRUST_MONGO_ROOT_PASS}
volumes:
- mongo_data:/data/db
trust:
image: europe-west1-docker.pkg.dev/moderate-common/moderate-images/trust-service:main
restart: on-failure
ports:
- ${TRUST_PORT:-8081}:8081
depends_on:
mongodb:
condition: service_healthy
env_file:
- .env.trust
# This file is not checked in, but it is expected to be present and to contain L2_PRIVATE_KEY
- .env.trust.local
environment:
# Original reference for MongoDB configuration:
# https://github.com/MODERATE-Project/trust-service/blob/main/actix-server/.mongo.env
MONGO_INITDB_ROOT_USERNAME: ${TRUST_MONGO_ROOT_USER}
MONGO_INITDB_ROOT_PASSWORD: ${TRUST_MONGO_ROOT_PASS}
MONGO_ENDPOINT: mongodb:27017
MONGO_DATABASE: ${MONGO_DATABASE:-moderate}
volumes:
mongo_data: {}