Commit fa2224ba authored by EKbfh's avatar EKbfh 🐼
Browse files

Fix mongodb replkey init

parent 7f5d53f6
......@@ -3,7 +3,14 @@ version: "2.4"
services:
mongo:
image: "mongo:4.4"
command: --wiredTigerCacheSizeGB 1.5 --bind_ip_all --keyFile=mongodb.key --replSet noc --port 27017
command: mongod --wiredTigerCacheSizeGB 1.5 --bind_ip_all --keyFile=mongodb.key --replSet noc --port 27017
entrypoint:
- sh
- -c
- |
chmod 600 mongodb.key
chown 999:999 mongodb.key
exec docker-entrypoint.sh $$@
volumes:
- ./files/mongo-init.js:/docker-entrypoint-initdb.d/01mongo-init.js
- ./files/mongodb.key:/mongodb.key
......
......@@ -1049,14 +1049,18 @@ services:
mongo:
image: mongo:${MONGO_VERSION_TAG}
hostname: mongo
command: >
--wiredTigerCacheSizeGB 1.5
--bind_ip_all
--replSet noc
--port 27017
command: mongod --wiredTigerCacheSizeGB 1.5 --bind_ip_all --keyFile=mongodb.key --replSet noc --port 27017
entrypoint:
- sh
- -c
- |
chmod 600 mongodb.key
chown 999:999 mongodb.key
exec docker-entrypoint.sh $$@
restart: "no"
volumes:
- ./etc/mongo/mongo-init.js:/docker-entrypoint-initdb.d/01mongo-init.js
- ./etc/mongo/mongodb.key:/mongodb.key
- mongo_data:/data/db
environment:
MONGO_INITDB_DATABASE: noc
......
gu8osKbNiIrcvIlAYk1r76BfmjQldbeXS2FYfCLh73WQmyputPaD+atzN3xUDK4d
2BmKlRqBOnebxPEmj7ZdyNRw02ujsULSOdZAKT+l4vbFmnsSorVLpxJa4fQ4/pWW
YuuGCbXC22/M0wLv4I4TuTSz5gLFTwHmFynmeJmX95SSTIpJ7r55C5P34nBD1tHl
WA0ptIy+7KRUKg2wY1VEsYPEPrvgVNwCoLGS4rX2QRINEmbcNjegiFD/YRCaE6Ki
L+OEDvunz7s+yP9g2ysZrELa//WgAmmnA9dhG8Hp4YIqCy1/WVG5nvvOsSK8hqpE
eEKrk6/ylVB6b9s7MF9VDGdVuHLqXFwBiRWPFlTvK9/AxXTJh0+tW62xfNXSnRoD
ScHf/Yt+/fjzUZ9elc7YCnkzgd3GG+w1F7wwq7L+8PKDIxpbzs9ddS5ecCUut8Fe
I/NE7+ZhGlNoqGOv/vKT80dPRDqa+Ajc91cU8m0ciCXb06Qk1Ybs94okTagJKQsu
3o5JjvgZkioE/sG/g+1ccS1uSW8t/0873Xj5SLwfKLtB8JEtKzWiW9retZ3kNA+Q
apKgjjFTwR9DTPregWwaOpW41Rkg8OxgPgXB147dCu6An9AB9Ug8wzOgtI3OP8an
noaMdAPM9oOD3ukIDfuKyqccQoJXRpVf5/Dc5CY3kPTvmMzAHvuAissYBaUXxrCz
65o40jw3TJIPTyV5IyUnhvAjRA6aT8m3zCby9nhQcRwiagd2YHNb51WutI6zldwS
XAIIHDeqXobXWNJ07Nonie8mWWoolvZ04dsY/Qsp6kGJpfXkPXCsBm/V0APCqvZW
fLA78O3yBjmVWio3YtLhGZdcn3qmvcoteOLs0Rrxfu0gxQPU4rx3Mor+dbfM9C26
2D0b7pa7pA0m21wDR00OeNafg+Fr7gdpipicHGCObWeIZbeYHstMAdDqt0KTkvSN
0cK9j68m9CF49p6O5ANCD0jC6moN
......@@ -131,6 +131,7 @@ if __name__ == "__main__":
set_hosts_address(my_ip)
change_ip_everywhere(ALL_PATHS, old_ip_address, my_ip)
print("Restarting services")
os.system(f"chown nats {NATS_DEB_PATH}")
os.system("systemctl restart nats-server")
os.system("systemctl restart liftbridge")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment