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

Stop generateconfig-anyconf and generateconfig-processing after usage

This commit is contained in:
hellodword 2024-06-28 12:13:32 +00:00
parent 9609edfaec
commit 237d2d341b
No known key found for this signature in database
GPG key ID: 094D44EBA7DBAE80
3 changed files with 5 additions and 9 deletions

View file

@ -12,7 +12,7 @@ services:
generateconfig-processing: generateconfig-processing:
depends_on: depends_on:
generateconfig-anyconf: generateconfig-anyconf:
condition: service_healthy condition: service_completed_successfully
build: build:
context: . context: .
dockerfile: Dockerfile-generateconfig-processing dockerfile: Dockerfile-generateconfig-processing
@ -23,7 +23,7 @@ services:
mongo-1: mongo-1:
depends_on: depends_on:
generateconfig-processing: generateconfig-processing:
condition: service_healthy condition: service_completed_successfully
image: "mongo:${MONGO_VERSION}" image: "mongo:${MONGO_VERSION}"
command: --replSet ${MONGO_REPLICA_SET} --port ${MONGO_1_PORT} command: --replSet ${MONGO_REPLICA_SET} --port ${MONGO_1_PORT}
ports: ports:
@ -38,7 +38,7 @@ services:
redis: redis:
depends_on: depends_on:
generateconfig-processing: generateconfig-processing:
condition: service_healthy condition: service_completed_successfully
image: "redis/redis-stack-server:${REDIS_VERSION}" image: "redis/redis-stack-server:${REDIS_VERSION}"
restart: always 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 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
@ -90,7 +90,7 @@ services:
image: "ghcr.io/anyproto/any-sync-coordinator:${ANY_SYNC_COORDINATOR_VERSION}" image: "ghcr.io/anyproto/any-sync-coordinator:${ANY_SYNC_COORDINATOR_VERSION}"
depends_on: depends_on:
generateconfig-processing: generateconfig-processing:
condition: service_healthy condition: service_completed_successfully
mongo-1: mongo-1:
condition: service_healthy condition: service_healthy
volumes: volumes:
@ -102,7 +102,7 @@ services:
image: "ghcr.io/anyproto/any-sync-coordinator:${ANY_SYNC_COORDINATOR_VERSION}" image: "ghcr.io/anyproto/any-sync-coordinator:${ANY_SYNC_COORDINATOR_VERSION}"
depends_on: depends_on:
generateconfig-processing: generateconfig-processing:
condition: service_healthy condition: service_completed_successfully
mongo-1: mongo-1:
condition: service_healthy condition: service_healthy
any-sync-coordinator_bootstrap: 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 yq --indent 2 --inplace ".account.signingKey |= \"${NETWORK_SIGNING_KEY}\"" account5.yml
echo "INFO: $0 done" 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 done
echo "INFO: $0 done" echo "INFO: $0 done"
echo "INFO: starting nc as status service"
nc -lk -p 8000 -e /bin/cat