mirror of
https://github.com/bitnami/containers.git
synced 2026-03-14 06:48:11 +08:00
3.6.10-ol-7-r56 release
This commit is contained in:
@@ -2,27 +2,33 @@ version: '2'
|
||||
|
||||
services:
|
||||
mongodb-primary:
|
||||
image: 'bitnami/mongodb:3.6'
|
||||
image: 'bitnami/mongodb:4.0-ol-7'
|
||||
environment:
|
||||
- MONGODB_REPLICA_SET_MODE=primary
|
||||
- MONGODB_ROOT_PASSWORD=password123
|
||||
- MONGODB_REPLICA_SET_KEY=replicasetkey123
|
||||
volumes:
|
||||
- 'mongodb_master_data:/bitnami'
|
||||
|
||||
mongodb-secondary:
|
||||
image: 'bitnami/mongodb:3.6'
|
||||
image: 'bitnami/mongodb:4.0-ol-7'
|
||||
depends_on:
|
||||
- mongodb-primary
|
||||
environment:
|
||||
- MONGODB_REPLICA_SET_MODE=secondary
|
||||
- MONGODB_PRIMARY_HOST=mongodb-primary
|
||||
- MONGODB_PRIMARY_ROOT_PASSWORD=password123
|
||||
- MONGODB_REPLICA_SET_KEY=replicasetkey123
|
||||
|
||||
mongodb-arbiter:
|
||||
image: 'bitnami/mongodb:3.6'
|
||||
image: 'bitnami/mongodb:4.0-ol-7'
|
||||
depends_on:
|
||||
- mongodb-primary
|
||||
environment:
|
||||
- MONGODB_REPLICA_SET_MODE=arbiter
|
||||
- MONGODB_PRIMARY_HOST=mongodb-primary
|
||||
- MONGODB_PRIMARY_ROOT_PASSWORD=password123
|
||||
- MONGODB_REPLICA_SET_KEY=replicasetkey123
|
||||
|
||||
volumes:
|
||||
mongodb_master_data:
|
||||
|
||||
Reference in New Issue
Block a user