mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(docker): consistently use DB everywhere (#62569)
This commit is contained in:
committed by
GitHub
parent
f3d2511f22
commit
97302e8886
@@ -1,6 +1,6 @@
|
||||
services:
|
||||
db:
|
||||
image: mongo
|
||||
image: mongo:8.0
|
||||
container_name: mongodb
|
||||
command: mongod --replSet rs0
|
||||
restart: unless-stopped
|
||||
@@ -15,14 +15,14 @@ services:
|
||||
retries: 5
|
||||
|
||||
setup:
|
||||
image: mongo
|
||||
image: mongo:8.0
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
restart: on-failure
|
||||
# This will try to initiate the replica set, until it succeeds twice (i.e. until the replica set is already initialized)
|
||||
command: >
|
||||
mongosh --host db:27017 --eval '
|
||||
mongosh --host mongodb:27017 --eval '
|
||||
var cfg = {
|
||||
_id: "rs0",
|
||||
members: [
|
||||
|
||||
Reference in New Issue
Block a user