Merge pull request #78 from AdsonCicilioti/docker-net-declaration

clean: docker network declaration and build of the `evolution/api` image
This commit is contained in:
Davidson Gomes 2023-08-29 11:27:10 -03:00 committed by GitHub
commit 7ade78bedf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 26 deletions

View File

@ -35,7 +35,8 @@ volumes:
evolution_mongodb_data:
evolution_mongodb_configdb:
networks:
evolution-net:
external: true
name: evolution-net
driver: bridge

View File

@ -5,9 +5,7 @@ services:
image: redis:latest
container_name: redis
command: >
redis-server
--port 6379
--appendonly yes
redis-server --port 6379 --appendonly yes
volumes:
- evolution_redis:/data
ports:
@ -16,6 +14,8 @@ services:
volumes:
evolution_redis:
networks:
evolution-net:
external: true
name: evolution-net
driver: bridge

View File

@ -4,6 +4,7 @@ services:
api:
container_name: evolution_api
image: evolution/api:local
build: .
restart: always
ports:
- 8080:8080
@ -24,5 +25,5 @@ volumes:
networks:
evolution-net:
external: true
name: evolution-net
driver: bridge

View File

@ -4,6 +4,7 @@ services:
api:
container_name: evolution_api
image: evolution/api:local
build: .
restart: always
ports:
- 8080:8080
@ -75,5 +76,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 +0,0 @@
#!/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