fix: Adjusts in docker files

This commit is contained in:
Davidson Gomes 2023-07-14 15:27:33 -03:00
commit 0fc160f57c
5 changed files with 109 additions and 19 deletions

View File

@ -1,9 +1,5 @@
version: '3.3'
networks:
evolution-net:
driver: bridge
services:
mongodb:
container_name: mongodb
@ -24,6 +20,24 @@ services:
expose:
- 27017
mongo-express:
image: mongo-express
environment:
ME_CONFIG_BASICAUTH_USERNAME: root
ME_CONFIG_BASICAUTH_PASSWORD: root
ME_CONFIG_MONGODB_SERVER: mongodb
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: root
ports:
- 8081:8081
links:
- mongodb
volumes:
evolution_mongodb_data:
evolution_mongodb_configdb:
networks:
default:
name: evolution-net

View File

@ -1,9 +1,5 @@
version: '3.3'
networks:
evolution-net:
driver: bridge
services:
redis:
image: redis:latest
@ -16,8 +12,17 @@ services:
- evolution_redis:/data
ports:
- 6379:6379
networks:
- evolution-net
rebrow:
image: marian/rebrow
ports:
- 5001:5001
links:
- redis
volumes:
evolution_redis:
networks:
default:
name: evolution-net

72
docker-compose-full.yaml Normal file
View File

@ -0,0 +1,72 @@
version: '3.3'
services:
redis:
image: redis:latest
container_name: redis
ports:
- 6379:6379
rebrow:
image: marian/rebrow
ports:
- 5001:5001
links:
- redis
mongodb:
container_name: mongodb
image: mongo
restart: always
volumes:
- evolution_mongodb_data:/data/db
- evolution_mongodb_configdb:/data/configdb
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
expose:
- 27017
mongo-express:
image: mongo-express
environment:
ME_CONFIG_BASICAUTH_USERNAME: root
ME_CONFIG_BASICAUTH_PASSWORD: root
ME_CONFIG_MONGODB_SERVER: mongodb
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: root
ports:
- 8081:8081
links:
- mongodb
api:
container_name: evolution_api
image: evolution/api:local
restart: always
ports:
- 8080:8080
volumes:
- evolution_instances:/evolution/instances
- evolution_store:/evolution/store
env_file:
- ./Docker/.env
command: ['node', './dist/src/main.js']
expose:
- 8080
links:
- mongodb
- redis
volumes:
evolution_instances:
evolution_store:
evolution_mongodb_data:
evolution_mongodb_configdb:
evolution_redis:
networks:
default:
name: evolution-net

View File

@ -1,9 +1,5 @@
version: '3.3'
networks:
evolution-net:
driver: bridge
services:
api:
container_name: evolution_api
@ -17,11 +13,14 @@ services:
env_file:
- ./Docker/.env
command: ['node', './dist/src/main.js']
networks:
- evolution-net
expose:
- 8080
volumes:
evolution_instances:
evolution_store:
networks:
default:
name: evolution-net