1
0
mirror of https://github.com/spacebarchat/spacebarchat.git synced 2024-09-19 17:01:47 +02:00

update submodules

This commit is contained in:
Flam3rboy 2021-05-29 18:57:16 +02:00
parent 66b2ebdf18
commit 0f97bdc311
2 changed files with 21 additions and 14 deletions

View File

@ -6,7 +6,7 @@ services:
build: gateway
ports:
- "3002:3002"
links:
depends_on:
- mongo
env_file: ./.docker/env
fosscord-api:
@ -15,7 +15,7 @@ services:
build: api
ports:
- "3001:3001"
links:
depends_on:
- mongo
env_file: ./.docker/env
mongo:
@ -27,18 +27,19 @@ services:
ports:
- "27017:27017"
command: mongod --replSet rs0
restart: unless-stopped
mongo-init-replica:
image: mongo
command: >
bash -c
"for i in `seq 1 30`; do
mongo mongo/fosscord --eval \"
rs.initiate({
_id: 'rs0',
members: [ { _id: 0, host: 'localhost:27017' } ]})\" &&
s=$$? && break || s=$$?;
echo \"Tried $$i times. Waiting 5 secs...\";
sleep 5;
done; (exit $$s)"
links:
- mongo
bash -c
"for i in `seq 1 30`; do
mongo mongo/fosscord --eval \"
rs.initiate({
_id: 'rs0',
members: [ { _id: 0, host: 'localhost:27017' } ]})\" &&
s=$$? && break || s=$$?;
echo \"Tried $$i times. Waiting 5 secs...\";
sleep 5;
done; (exit $$s)"
depends_on:
- mongo

View File

@ -30,6 +30,12 @@
{
"path": "./api"
},
{
"path": "./rtc"
},
{
"path": "./voice-gateway"
},
{
"path": "./landingpage"
},