Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Mongo init depends on #107

Merged
merged 2 commits into from
Mar 28, 2024
Merged
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
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ POSTGRES_DATABASE=languages
POSTGRES_HOST=db
POSTGRESQL_DB_URL="postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}/${POSTGRES_DATABASE}"
MONGO_DB_DATABASE=languages
MONGO_DB_URL=mongodb://mongodb:27017/${MONGO_DB_DATABASE}?replicaSet=rs0&directConnection=true
MONGO_DB_URL=mongodb://mongodb:27017/${MONGO_DB_DATABASE}?replicaSet=rs0
GOOGLE_CLIENT_ID=""
JWT_SECRET=""
FRONTED_URL="http://localhost:3000"
Expand Down
5 changes: 2 additions & 3 deletions .k8s/mongo1-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
creationTimestamp: null
labels:
name: mongo1-deployment
name: mongo1-statefulset
role: database
name: mongo1
spec:
Expand Down Expand Up @@ -49,7 +49,6 @@ spec:
- |
#!/bin/bash
echo "Mongo init"
sleep 30
mongosh --host mongo1:27017 <<EOF
cfg = {
"_id": "rs0",
Expand Down
2 changes: 1 addition & 1 deletion .k8s/secret.yaml.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ data:
RABBITMQ_DEFAULT_PASS: cmFiYml0X2FwcA==
RABBITMQ_HOST: YW1xcDovL2FwcDpyYWJiaXRfYXBwQHJhYmJpdG1xOjU2NzI=
MONGO_DB_DATABASE: bGFuZ3VhZ2Vz
MONGO_DB_URL: bW9uZ29kYjovL21vbmdvMToyNzAxNy9sYW5ndWFnZXM/cmVwbGljYVNldD1yczAmZGlyZWN0Q29ubmVjdGlvbj10cnVl
MONGO_DB_URL: bW9uZ29kYjovL21vbmdvZGI6MjcwMTcvbGFuZ3VhZ2VzP3JlcGxpY2FTZXQ9cnMw
GOOGLE_CLIENT_ID: xxxxx
POSTGRES_DATABASE: bGFuZ3VhZ2Vz
POSTGRES_USER: cG9zdGdyZXM=
Expand Down
Loading