clean: declarative bridge network instead shellscript check

This commit is contained in:
AdsonCicilioti 2023-08-26 00:29:58 -03:00
parent 530aec92a9
commit bbc2b8a396
4 changed files with 7 additions and 14 deletions

View File

@ -24,5 +24,5 @@ volumes:
networks:
evolution-net:
external: true
name: evolution-net
driver: bridge

View File

@ -75,5 +75,5 @@ volumes:
networks:
evolution-net:
external: true
name: evolution-net
driver: bridge

View File

@ -24,5 +24,5 @@ volumes:
networks:
evolution-net:
external: true
name: evolution-net
driver: bridge

View File

@ -1,13 +1,6 @@
#!/bin/bash
NET='evolution-net'
IMAGE='evolution/api:local'
if !(docker network ls | grep ${NET} > /dev/null)
then
docker network create -d bridge ${NET}
fi
docker build -t ${IMAGE} .
docker compose up -d