Merge pull request #2323 from bluewave-labs/feat/arm-support
Feat/arm support
This commit is contained in:
3 files changed
+24
-6
No files matched your search
@@ -4,6 +4,7 @@ import svgr from "vite-plugin-svgr";
|
|||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
base: "/",
|
||||||
plugins: [svgr(), react()],
|
plugins: [svgr(), react()],
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
include: ["@mui/material/Tooltip", "@emotion/styled"],
|
include: ["@mui/material/Tooltip", "@emotion/styled"],
|
||||||
|
|||||||
@@ -26,8 +26,29 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
mongodb:
|
mongodb:
|
||||||
image: mongo:4.4.18
|
image: mongo:4.4.18
|
||||||
|
container_name: checkmate-mongodb
|
||||||
restart: always
|
restart: always
|
||||||
command: ["mongod", "--quiet", "--replSet", "rs0", "--bind_ip_all"]
|
command: ["mongod", "--replSet", "rs0", "--bind_ip_all"]
|
||||||
|
ports:
|
||||||
|
- "27017:27017"
|
||||||
volumes:
|
volumes:
|
||||||
- ./mongo/data:/data/db
|
- ./mongo/data:/data/db
|
||||||
- ./mongo/init:/docker-entrypoint-initdb.d
|
|
||||||
|
mongo-init:
|
||||||
|
image: mongo:4.4.18
|
||||||
|
depends_on:
|
||||||
|
- mongodb
|
||||||
|
entrypoint: >
|
||||||
|
bash -c "
|
||||||
|
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.'
|
||||||
|
"
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
rs.initiate({
|
|
||||||
_id: "rs0",
|
|
||||||
members: [{ _id: 0, host: "mongodb:27017" }],
|
|
||||||
});
|
|
||||||
Reference in new issue
Block a user