-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.mongodb.yml
More file actions
46 lines (43 loc) · 1.63 KB
/
Copy pathdocker-compose.mongodb.yml
File metadata and controls
46 lines (43 loc) · 1.63 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
# The stack's one Mongo instance, on a named volume that survives `make down`.
#
# Pulled out of docker-compose.vc-services.yml so that wallet-backend can use
# it without the VC services: PDP=helm renders wallet-backend's config from
# the chart, and the chart gives it storage.type mongodb at mongodb://mongodb.
# Before this overlay existed, `make up PDP=helm` without VC=yes pointed
# wallet-backend at a host that was never started.
#
# Included by the Makefile whenever VC services are on OR PDP=helm - see
# scripts/stack.py for the rule in one place.
#
# Persistence: the volume has an explicit, project-independent name, so
# `make storage-status` / `make storage-clear` and the boot manager find it
# regardless of which directory the checkout lives in (compose would
# otherwise prefix it with the directory name). `make down` keeps it, `make
# clean` and `make storage-clear` remove it. Clearing from the dashboard goes
# through env-admin (docker-compose.test.yml), which drops the databases and
# restarts the consumers rather than touching the volume.
#
# Version pinned to match siros-id-stack's images.mongoCommunityVersion, so
# local testing uses the same Mongo production runs.
services:
mongodb:
image: mongo:7.0.24
container_name: vc-mongodb-e2e
ports:
- "27017:27017"
volumes:
- mongodb-data:/data/db
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 5s
timeout: 5s
retries: 10
networks:
- e2e-test-network
networks:
e2e-test-network:
name: e2e-test-network
external: true
volumes:
mongodb-data:
name: sirosid-mongodb-data