1
0
Fork 0
mirror of https://github.com/anyproto/any-sync-dockercompose.git synced 2025-06-08 05:47:03 +09:00

Merge pull request #76 from hellodword/patch-2

Stop generateconfig-anyconf and generateconfig-processing after usage
This commit is contained in:
Grigory Efimov 2024-08-14 13:17:47 -03:00 committed by GitHub
commit 06959f1a95
Signed by: github
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 9 deletions

View file

@ -13,7 +13,7 @@ services:
generateconfig-processing:
depends_on:
generateconfig-anyconf:
condition: service_healthy
condition: service_completed_successfully
build:
context: .
dockerfile: Dockerfile-generateconfig-processing
@ -25,7 +25,7 @@ services:
mongo-1:
depends_on:
generateconfig-processing:
condition: service_healthy
condition: service_completed_successfully
image: "mongo:${MONGO_VERSION}"
command: ["--replSet", "${MONGO_REPLICA_SET}", "--port", "${MONGO_1_PORT}"]
ports:
@ -40,7 +40,7 @@ services:
redis:
depends_on:
generateconfig-processing:
condition: service_healthy
condition: service_completed_successfully
image: "redis/redis-stack-server:${REDIS_VERSION}"
restart: always
command: ["redis-server", "--port", "${REDIS_PORT}", "--dir", "/data/", "--appendonly", "yes", "--maxmemory", "256mb", "--maxmemory-policy", "noeviction", "--protected-mode", "no", "--loadmodule", "/opt/redis-stack/lib/redisbloom.so"]
@ -91,7 +91,7 @@ services:
image: "ghcr.io/anyproto/any-sync-coordinator:${ANY_SYNC_COORDINATOR_VERSION}"
depends_on:
generateconfig-processing:
condition: service_healthy
condition: service_completed_successfully
mongo-1:
condition: service_healthy
volumes:
@ -103,7 +103,7 @@ services:
image: "ghcr.io/anyproto/any-sync-coordinator:${ANY_SYNC_COORDINATOR_VERSION}"
depends_on:
generateconfig-processing:
condition: service_healthy
condition: service_completed_successfully
mongo-1:
condition: service_healthy
any-sync-coordinator_bootstrap:

View file

@ -56,5 +56,3 @@ yq --indent 2 --inplace ".account.signingKey |= \"${NETWORK_SIGNING_KEY}\"" acco
yq --indent 2 --inplace ".account.signingKey |= \"${NETWORK_SIGNING_KEY}\"" account5.yml
echo "INFO: $0 done"
echo "INFO: starting nc as status service"
nc -lk -p 8000 -e /bin/cat

View file

@ -65,5 +65,3 @@ for FILE in $( find ${DEST_PATH}/ -name "*.yml" ); do
done
echo "INFO: $0 done"
echo "INFO: starting nc as status service"
nc -lk -p 8000 -e /bin/cat