-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
75 lines (73 loc) · 2.07 KB
/
docker-compose.yaml
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
version: '3.5'
services:
chainsource-gateway:
image: dbomproject/chainsource-gateway:latest
networks:
- dbom
ports:
- 3000:3000
volumes:
- './agent-config.yaml:/app/config/agent-config.yaml'
environment:
- LOG_LEVEL=info
- PORT=3000
mongodb-audit-watcher:
image: dbomproject/mongodb-audit-watcher:latest
networks:
- dbom
depends_on:
mongodb:
condition: service_healthy
environment:
- MONGO_HOST=mongodb
- MONGO_PORT=27017
- MONGO_USER=root
- CHANNEL_DB=primary
- AUDIT_POSTFIX=_audit
- MONGO_PASS=rootpassword
- MONGO_REPLICA_SET_NAME=rs0
- PERSIST_PATH=/var/audit-persist
volumes:
- /var/audit-persist
database-agent:
image: dbomproject/database-agent:latest
networks:
- dbom
ports:
- 3500:3500
depends_on:
mongodb:
condition: service_healthy
environment:
- MONGO_HOST=mongodb
- MONGO_PORT=27017
- MONGO_USER=root
- CHANNEL_DB=primary
- AUDIT_POSTFIX=_audit
- MONGO_PASS=rootpassword
- MONGO_REPLICA_SET_NAME=rs0
mongodb:
image: 'bitnami/mongodb:6.0.1'
networks:
- dbom
environment:
- MONGODB_REPLICA_SET_MODE=primary
- MONGODB_ADVERTISED_HOSTNAME=mongodb
- MONGODB_ROOT_PASSWORD=rootpassword
- MONGODB_REPLICA_SET_NAME=rs0
- MONGODB_REPLICA_SET_KEY=replicasetkey123
healthcheck:
test: echo 'db.runCommand("ping").ok;' | mongosh mongodb:27017/test --quiet
interval: 10s
timeout: 100s
retries: 10
start_period: 30s
ports:
- 27017:27017
volumes:
- mongodb_data:/data/db
volumes:
chainsource_data:
mongodb_data:
networks:
dbom: