1
0
Fork 0
mirror of https://github.com/anyproto/any-sync-dockercompose.git synced 2025-06-08 05:47:03 +09:00
any-sync-dockercompose/Makefile
Grigory Efimov f514a2f795 refactoring
2023-08-18 16:30:48 +03:00

36 lines
940 B
Makefile

.DEFAULT_GOAL := start
SHELL=/bin/bash
generate_etc:
install -d \
tmp/etc/any-sync-node-{1..3}/ \
tmp/etc/any-sync-filenode/ \
tmp/etc/any-sync-coordinator/
cat etc/{network,common,node-1}.yml > tmp/etc/any-sync-node-1/config.yml
cat etc/{network,common,node-2}.yml > tmp/etc/any-sync-node-2/config.yml
cat etc/{network,common,node-3}.yml > tmp/etc/any-sync-node-3/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.yml | grep -v '^network:' > tmp/etc/any-sync-coordinator/network.yml
start: generate_etc
docker compose up --force-recreate --build --remove-orphans --detach
stop:
docker compose stop
clean:
docker system prune --all
pull:
docker compose pull
down:
docker compose down
restart: stop start
update: stop pull start
upgrade: stop clean start
cleanTmp:
rm -rf tmp/