-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
33 lines (32 loc) · 973 Bytes
/
docker-compose.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
version: '3.7'
services:
mongodb:
container_name: mongodb_tweeter
image: docker.io/bitnami/mongodb:latest
restart: always
environment:
MONGODB_ADVERTISED_HOSTNAME: ${MONGODB_HOSTNAME:-localhost}
MONGODB_REPLICA_SET_MODE: primary
MONGODB_ROOT_PASSWORD: ${MONGODB_PASSWORD:-admin}
MONGODB_REPLICA_SET_KEY: replicasetkey123
MONGODB_REPLICA_SET_NAME: tweeter
ports:
- ${MONGODB_PORT:-27017}:27017
volumes:
- mongodb_data:/bitnami/mongodb
mongoexpress:
container_name: mongoexpress_tweeter
image: mongo-express:latest
restart: always
environment:
ME_CONFIG_BASICAUTH_USERNAME: root
ME_CONFIG_BASICAUTH_PASSWORD: admin
ME_CONFIG_MONGODB_SERVER: mongodb_tweeter
ME_CONFIG_MONGODB_ADMINUSERNAME: ${MONGODB_USER:-root}
ME_CONFIG_MONGODB_ADMINPASSWORD: ${MONGODB_PASSWORD:-admin}
ports:
- 8081:8081
depends_on:
- mongodb
volumes:
mongodb_data: