Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions devel/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
version: '3.1'

---
services:
mongo:
build: mongo
ports:
- "127.0.0.1:27017:27017"
command: ["--replSet", "rs", "--logappend", "--logpath", "/dev/null"]
command: ["--replSet", "rs"]
hostname: "mongo"
restart: always
healthcheck:
test: ["CMD", "mongo", "test"]
interval: 5s
timeout: 2s
retries: 5

perflab_web:
build:
Expand All @@ -20,8 +25,6 @@ services:
depends_on:
mongo:
condition: service_healthy
links:
- mongo
init: true

perflab_agent:
Expand All @@ -35,8 +38,6 @@ services:
depends_on:
mongo:
condition: service_healthy
links:
- mongo
init: true

mongoexpress:
Expand All @@ -46,7 +47,5 @@ services:
depends_on:
mongo:
condition: service_healthy
links:
- mongo
environment:
ME_CONFIG_MONGODB_SERVER: "mongo"
- ME_CONFIG_MONGODB_URL=mongodb://mongo:27017
4 changes: 1 addition & 3 deletions devel/mongo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
FROM mongo
FROM docker.io/library/mongo:4

ADD init.js /docker-entrypoint-initdb.d/

HEALTHCHECK --interval=5s --start-period=10s CMD mongo test