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

added generate_etc

This commit is contained in:
Grigory Efimov 2023-04-25 15:55:24 +03:00 committed by Mikhail Iudin
parent 1b99786123
commit 0df1a16279
No known key found for this signature in database
GPG key ID: FAAAA8BAABDFF1C0

View file

@ -1,4 +1,7 @@
start: start: generate_etc
docker compose up --force-recreate --build --detach
generate_etc:
install -d \ install -d \
tmp/etc/any-sync-node-{1..3}/ \ tmp/etc/any-sync-node-{1..3}/ \
tmp/etc/any-sync-filenode/ \ tmp/etc/any-sync-filenode/ \
@ -9,7 +12,6 @@ start:
cat etc/{network,common,filenode}.yml > tmp/etc/any-sync-filenode/config.yml cat etc/{network,common,filenode}.yml > tmp/etc/any-sync-filenode/config.yml
cat etc/{network,common,coordinator}.yml > tmp/etc/any-sync-coordinator/config.yml cat etc/{network,common,coordinator}.yml > tmp/etc/any-sync-coordinator/config.yml
cat etc/network.yml | grep -v '^network:' > tmp/etc/any-sync-coordinator/network.yml cat etc/network.yml | grep -v '^network:' > tmp/etc/any-sync-coordinator/network.yml
docker compose up --force-recreate --build --detach
stop: stop:
docker-compose stop docker-compose stop