Merge pull request #2774 from bluewave-labs/fix/remove-mogno-replica-set-config
fix: remove mogno replica set config
This commit is contained in:
15 files changed
+20
-76
No files matched your search
@@ -19,27 +19,15 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- server.env
|
- server.env
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
|
||||||
- mongodb
|
- mongodb
|
||||||
redis:
|
|
||||||
image: uptime_redis:latest
|
|
||||||
restart: always
|
|
||||||
volumes:
|
|
||||||
- ./redis/data:/data
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "redis-cli", "ping"]
|
|
||||||
interval: 30s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 5
|
|
||||||
start_period: 5s
|
|
||||||
mongodb:
|
mongodb:
|
||||||
image: uptime_mongo:latest
|
image: uptime_mongo:latest
|
||||||
restart: always
|
restart: always
|
||||||
command: ["mongod", "--quiet", "--replSet", "rs0", "--bind_ip_all"]
|
command: ["mongod", "--quiet", "--bind_ip_all"]
|
||||||
volumes:
|
volumes:
|
||||||
- ./mongo/data:/data/db
|
- ./mongo/data:/data/db
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: echo "try { rs.status() } catch (err) { rs.initiate({_id:'rs0',members:[{_id:0,host:'mongodb:27017'}]}) }" | mongosh --port 27017 --quiet
|
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')", "--quiet"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 30s
|
timeout: 30s
|
||||||
start_period: 0s
|
start_period: 0s
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
FROM redis
|
|
||||||
EXPOSE 6379
|
|
||||||
@@ -7,7 +7,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- UPTIME_APP_API_BASE_URL=http://localhost:52345/api/v1
|
- UPTIME_APP_API_BASE_URL=http://localhost:52345/api/v1
|
||||||
- UPTIME_APP_CLIENT_HOST=http://localhost
|
- UPTIME_APP_CLIENT_HOST=http://localhost
|
||||||
- DB_CONNECTION_STRING=mongodb://mongodb:27017/uptime_db?replicaSet=rs0
|
- DB_CONNECTION_STRING=mongodb://mongodb:27017/uptime_db
|
||||||
- REDIS_URL=redis://redis:6379
|
- REDIS_URL=redis://redis:6379
|
||||||
- CLIENT_HOST=http://localhost
|
- CLIENT_HOST=http://localhost
|
||||||
- JWT_SECRET=my_secret
|
- JWT_SECRET=my_secret
|
||||||
@@ -22,22 +22,10 @@ services:
|
|||||||
- "27017:27017"
|
- "27017:27017"
|
||||||
volumes:
|
volumes:
|
||||||
- ./mongo/data:/data/db
|
- ./mongo/data:/data/db
|
||||||
|
healthcheck:
|
||||||
mongo-init:
|
test: ["CMD", "mongo", "--eval", "db.runCommand({ ping: 1 })", "--quiet"]
|
||||||
image: mongo:4.4.18
|
interval: 5s
|
||||||
depends_on:
|
timeout: 30s
|
||||||
- mongodb
|
start_period: 0s
|
||||||
entrypoint: >
|
start_interval: 1s
|
||||||
bash -c "
|
retries: 30
|
||||||
echo 'Waiting for MongoDB to be ready...' &&
|
|
||||||
until mongo --host mongodb --eval 'db.adminCommand(\"ping\")' > /dev/null 2>&1; do
|
|
||||||
sleep 2
|
|
||||||
done &&
|
|
||||||
echo 'MongoDB is up. Initiating replica set...' &&
|
|
||||||
mongo --host mongodb --eval '
|
|
||||||
rs.initiate({
|
|
||||||
_id: \"rs0\",
|
|
||||||
members: [{ _id: 0, host: \"mongodb:27017\" }]
|
|
||||||
})
|
|
||||||
' || echo 'Replica set may already be initialized.'
|
|
||||||
"
|
|
||||||
@@ -8,7 +8,6 @@ cd ../..
|
|||||||
services=("mono_mongo" "mono_redis" "mono_server")
|
services=("mono_mongo" "mono_redis" "mono_server")
|
||||||
dockerfiles=(
|
dockerfiles=(
|
||||||
"./docker/dist-mono/mongoDB.Dockerfile"
|
"./docker/dist-mono/mongoDB.Dockerfile"
|
||||||
"./docker/dist-mono/redis.Dockerfile"
|
|
||||||
"./docker/dist-mono/server.Dockerfile"
|
"./docker/dist-mono/server.Dockerfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,8 +7,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- UPTIME_APP_API_BASE_URL=http://localhost:52345/api/v1
|
- UPTIME_APP_API_BASE_URL=http://localhost:52345/api/v1
|
||||||
- UPTIME_APP_CLIENT_HOST=http://localhost
|
- UPTIME_APP_CLIENT_HOST=http://localhost
|
||||||
- DB_CONNECTION_STRING=mongodb://mongodb:27017/uptime_db?replicaSet=rs0
|
- DB_CONNECTION_STRING=mongodb://mongodb:27017/uptime_db
|
||||||
- REDIS_URL=redis://redis:6379
|
|
||||||
- CLIENT_HOST=http://localhost
|
- CLIENT_HOST=http://localhost
|
||||||
- JWT_SECRET=my_secret
|
- JWT_SECRET=my_secret
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -16,11 +15,11 @@ services:
|
|||||||
mongodb:
|
mongodb:
|
||||||
image: ghcr.io/bluewave-labs/checkmate-mongo:latest
|
image: ghcr.io/bluewave-labs/checkmate-mongo:latest
|
||||||
restart: always
|
restart: always
|
||||||
command: ["mongod", "--quiet", "--replSet", "rs0", "--bind_ip_all"]
|
command: ["mongod", "--quiet", "--bind_ip_all"]
|
||||||
volumes:
|
volumes:
|
||||||
- ./mongo/data:/data/db
|
- ./mongo/data:/data/db
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: echo "try { rs.status() } catch (err) { rs.initiate({_id:'rs0',members:[{_id:0,host:'mongodb:27017'}]}) }" | mongosh --port 27017 --quiet
|
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')", "--quiet"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 30s
|
timeout: 30s
|
||||||
start_period: 0s
|
start_period: 0s
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
FROM redis
|
|
||||||
EXPOSE 6379
|
|
||||||
Vendored
-1
@@ -7,7 +7,6 @@ cd ../../
|
|||||||
declare -A services=(
|
declare -A services=(
|
||||||
["bluewaveuptime/uptime_client"]="./docker/dist/client.Dockerfile"
|
["bluewaveuptime/uptime_client"]="./docker/dist/client.Dockerfile"
|
||||||
["bluewaveuptime/uptime_database_mongo"]="./docker/dist/mongoDB.Dockerfile"
|
["bluewaveuptime/uptime_database_mongo"]="./docker/dist/mongoDB.Dockerfile"
|
||||||
["bluewaveuptime/uptime_redis"]="./docker/dist/redis.Dockerfile"
|
|
||||||
["bluewaveuptime/uptime_server"]="./docker/dist/server.Dockerfile"
|
["bluewaveuptime/uptime_server"]="./docker/dist/server.Dockerfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Vendored
+3
-4
@@ -18,8 +18,7 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- mongodb
|
- mongodb
|
||||||
environment:
|
environment:
|
||||||
- DB_CONNECTION_STRING=mongodb://mongodb:27017/uptime_db?replicaSet=rs0
|
- DB_CONNECTION_STRING=mongodb://mongodb:27017/uptime_db
|
||||||
- REDIS_URL=redis://redis:6379
|
|
||||||
- CLIENT_HOST=http://localhost
|
- CLIENT_HOST=http://localhost
|
||||||
- JWT_SECRET=my_secret
|
- JWT_SECRET=my_secret
|
||||||
# volumes:
|
# volumes:
|
||||||
@@ -29,9 +28,9 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./mongo/data:/data/db
|
- ./mongo/data:/data/db
|
||||||
command: ["mongod", "--quiet", "--replSet", "rs0", "--bind_ip_all"]
|
command: ["mongod", "--quiet", "--bind_ip_all"]
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: echo "try { rs.status() } catch (err) { rs.initiate({_id:'rs0',members:[{_id:0,host:'mongodb:27017'}]}) }" | mongosh --port 27017 --quiet
|
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')", "--quiet"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 30s
|
timeout: 30s
|
||||||
start_period: 0s
|
start_period: 0s
|
||||||
|
|||||||
Vendored
-2
@@ -1,2 +0,0 @@
|
|||||||
FROM redis
|
|
||||||
EXPOSE 6379
|
|
||||||
@@ -8,7 +8,6 @@ cd ../../
|
|||||||
declare -A services=(
|
declare -A services=(
|
||||||
["uptime_client"]="./docker/prod/client.Dockerfile"
|
["uptime_client"]="./docker/prod/client.Dockerfile"
|
||||||
["uptime_database_mongo"]="./docker/prod/mongoDB.Dockerfile"
|
["uptime_database_mongo"]="./docker/prod/mongoDB.Dockerfile"
|
||||||
["uptime_redis"]="./docker/prod/redis.Dockerfile"
|
|
||||||
["uptime_server"]="./docker/prod/server.Dockerfile"
|
["uptime_server"]="./docker/prod/server.Dockerfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -37,14 +37,13 @@ services:
|
|||||||
mongodb:
|
mongodb:
|
||||||
image: ghcr.io/bluewave-labs/checkmate:mongo-demo
|
image: ghcr.io/bluewave-labs/checkmate:mongo-demo
|
||||||
restart: always
|
restart: always
|
||||||
command: ["mongod", "--quiet", "--replSet", "rs0", "--bind_ip_all"]
|
command: ["mongod", "--quiet", "--bind_ip_all"]
|
||||||
volumes:
|
volumes:
|
||||||
- ./mongo/data:/data/db
|
- ./mongo/data:/data/db
|
||||||
# - ./mongo/init/init.js:/docker-entrypoint-initdb.d/init.js // No longer needed
|
|
||||||
env_file:
|
env_file:
|
||||||
- mongo.env
|
- mongo.env
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: echo "try { rs.status() } catch (err) { rs.initiate({_id:'rs0',members:[{_id:0,host:'mongodb:27017'}]}) }" | mongosh --port 27017 --quiet
|
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')", "--quiet"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 30s
|
timeout: 30s
|
||||||
start_period: 0s
|
start_period: 0s
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
FROM redis
|
|
||||||
EXPOSE 6379
|
|
||||||
@@ -8,7 +8,6 @@ cd ../../
|
|||||||
declare -A services=(
|
declare -A services=(
|
||||||
["uptime_client"]="./docker/staging/client.Dockerfile"
|
["uptime_client"]="./docker/staging/client.Dockerfile"
|
||||||
["uptime_database_mongo"]="./docker/staging/mongoDB.Dockerfile"
|
["uptime_database_mongo"]="./docker/staging/mongoDB.Dockerfile"
|
||||||
["uptime_redis"]="./docker/staging/redis.Dockerfile"
|
|
||||||
["uptime_server"]="./docker/staging/server.Dockerfile"
|
["uptime_server"]="./docker/staging/server.Dockerfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -31,34 +31,19 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- server.env
|
- server.env
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
|
||||||
- mongodb
|
- mongodb
|
||||||
redis:
|
|
||||||
image: ghcr.io/bluewave-labs/checkmate:redis-staging
|
|
||||||
restart: always
|
|
||||||
ports:
|
|
||||||
- "6379:6379"
|
|
||||||
volumes:
|
|
||||||
- ./redis/data:/data
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD", "redis-cli", "ping"]
|
|
||||||
interval: 30s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 5
|
|
||||||
start_period: 5s
|
|
||||||
mongodb:
|
mongodb:
|
||||||
image: ghcr.io/bluewave-labs/checkmate:mongo-staging
|
image: ghcr.io/bluewave-labs/checkmate:mongo-staging
|
||||||
restart: always
|
restart: always
|
||||||
command: ["mongod", "--quiet", "--replSet", "rs0", "--bind_ip_all"]
|
command: ["mongod", "--quiet", "--bind_ip_all"]
|
||||||
ports:
|
ports:
|
||||||
- "27017:27017"
|
- "27017:27017"
|
||||||
volumes:
|
volumes:
|
||||||
- ./mongo/data:/data/db
|
- ./mongo/data:/data/db
|
||||||
# - ./mongo/init/02_create_users.js:/docker-entrypoint-initdb.d/02_create_users.js // No longer needed
|
|
||||||
env_file:
|
env_file:
|
||||||
- mongo.env
|
- mongo.env
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: echo "try { rs.status() } catch (err) { rs.initiate({_id:'rs0',members:[{_id:0,host:'mongodb:27017'}]}) }" | mongosh --port 27017 --quiet
|
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')", "--quiet"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 30s
|
timeout: 30s
|
||||||
start_period: 0s
|
start_period: 0s
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
FROM redis
|
|
||||||
EXPOSE 6379
|
|
||||||
Reference in new issue
Block a user