-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
54 lines (50 loc) · 1.55 KB
/
docker-compose.example.yml
File metadata and controls
54 lines (50 loc) · 1.55 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
version: "3"
services:
measure-service:
depends_on:
- mongo
image: tacoma/measure-repository-service
environment:
DATABASE_URL: "mongodb://mongo:27017/measure-repository?replicaSet=rs0"
ports:
- "3000:3000"
stdin_open: true
tty: true
measure-service-app:
depends_on:
- mongo
- measure-service
image: tacoma/measure-repository-app
environment:
# Change this for public location of measure-service this should be the FQDN and location of where the
# measure-service container is made public to users with `4_0_1` appended. ex. https://abacus.example.com/mrs/4_0_1
PUBLIC_MRS_SERVER: http://localhost:3000/4_0_1
MRS_SERVER: http://measure-service:3000/4_0_1
MONGODB_URI: mongodb://mongo:27017/draft-repository?replicaSet=rs0
ports:
- "3001:3001"
stdin_open: true
tty: true
mongo:
image: mongo:7.0
command: ["--replSet", "rs0", "--bind_ip_all", "--port", "27017"]
expose:
- "27017:27017"
ports:
- 27017:27017
extra_hosts:
- "host.docker.internal:host-gateway"
healthcheck:
# for linux systems, replace host.docker.internal with mongo
test: echo "try { rs.status() } catch (err) { rs.initiate({_id:'rs0',members:[{_id:0,host:'host.docker.internal:27017'}]}) }" | mongosh --port 27017 --quiet
interval: 5s
timeout: 30s
start_period: 0s
start_interval: 1s
retries: 30
volumes:
- mongo_data:/data/db
- mongo_config:/data/configdb
volumes:
mongo_data:
mongo_config: