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_data:
evolution_mongodb_configdb: evolution_mongodb_configdb:
networks: networks:
evolution-net: evolution-net:
external: true name: evolution-net
driver: bridge

View File

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

View File

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

View File

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

View File

@ -24,5 +24,5 @@ volumes:
networks: networks:
evolution-net: 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