Commit ad80b08b authored by Your Name's avatar Your Name

update script

parent 3efc986d
docker-compose_ring.yml
docker-compose_cryptor.yml
docker-compose-cadvisor.yml
\ No newline at end of file
#!/bin/bash
set -e
N=${1:-1}
composefile="docker-compose_cryptor.yml"
echo 'version: "3.9"' > $composefile
echo '' >> $composefile
echo 'services:' >> $composefile
for i in $(seq 1 $N)
do
echo ' cryptor$i:' >> $composefile
echo ' image: 192.168.1.220:5000/cryptor:v0.0.1 ' >> $composefile
echo ' container_name: cryptor$i' >> $composefile
echo ' deploy:' >> $composefile
echo ' restart_policy:' >> $composefile
echo ' condition: on-failure' >> $composefile
echo ' delay: 15s' >> $composefile
echo ' max_attempts: 100' >> $composefile
echo ' window: 120s' >> $composefile
echo ' volumes:' >> $composefile
echo ' - ./cryptor/config.toml:/root/config.toml' >> $composefile
echo ' networks:' >> $composefile
echo ' - meta' >> $composefile
done
......@@ -6,3 +6,4 @@ N=${1:-2}
./ring.sh $N
./cadvisor.sh $N
./cryptor.sh $N
\ No newline at end of file
......@@ -2,4 +2,4 @@
set -e
docker compose -f docker-compose-prometheus.yml -f docker-compose_ring.yml -f docker-compose-cadvisor.yml up -d
\ No newline at end of file
docker compose -f docker-compose-prometheus.yml -f docker-compose_ring.yml -f docker-compose-cadvisor.yml -f docker-compose_cryptor.yml up -d
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment