-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
35 lines (32 loc) · 822 Bytes
/
compose.yaml
File metadata and controls
35 lines (32 loc) · 822 Bytes
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
services:
mongodb:
image: mongo
restart: unless-stopped
environment:
MONGO_INITDB_DATABASE: echobot
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
ports:
- 27017:27017
- 27018:27018
- 27019:27019
mongodb-webui:
image: mongo-express
restart: unless-stopped
environment:
ME_CONFIG_MONGODB_SERVER: mongodb
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: password
ports:
- 8081:8081
echobot:
build:
context: .
restart: unless-stopped
environment:
OUTPUT_TYPE: "mongodb"
SLEEP_TIME: "5s"
MESSAGE: "Docker compose test"
MONGODB_URI: "mongodb://root:password@mongodb:27017"
MONGODB_DATABASE: "echobot"
MONGODB_COLLECTION: "log"