You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

62 lines
1.6 KiB

version: "3.7"
services:
mongodb:
image: mongo:latest
container_name: mongodb
volumes:
- ./mongo_data:/data/db
environment:
- MONGO_INITDB_DATABASE=forms
- MONGO_INITDB_ROOT_USERNAME=mongodbUser
- MONGO_INITDB_ROOT_PASSWORD=mongodbPass
ports:
- "27017:27017"
mongo-express:
container_name: mongo-express
depends_on:
- mongodb
image: mongo-express:latest
environment:
- ME_CONFIG_MONGODB_SERVER=mongodb
- ME_CONFIG_MONGODB_PORT=27017
- ME_CONFIG_MONGODB_ADMINUSERNAME=mongodbUser
- ME_CONFIG_MONGODB_ADMINPASSWORD=mongodbPass
- ME_CONFIG_BASICAUTH_USERNAME=expressUser
- ME_CONFIG_BASICAUTH_PASSWORD=expressPass
- ME_CONFIG_MONGODB_ENABLE_ADMIN=true
- ME_CONFIG_OPTIONS_EDITORTHEME=default
ports:
- "8081:8081"
node:
depends_on:
- mongodb
image: avaliacao-imovel-rural/air-backend
container_name: air-backend
build:
context: .
args:
- HTTP_PROXY=http://192.168.128.1:3128
- HTTPS_PROXY=http://192.168.128.1:3128
- http_proxy=http://192.168.128.1:3128
- https_proxy=http://192.168.128.1:3128
ports:
- "3001:3001"
env_file:
- .env
environment:
- NODEJS_HOST=0.0.0.0
- NODEJS_PORT=3001
- MONGO_DB_HOST=mongodb
- MONGO_DB_PORT=27017
- MONGO_DB_URL=mongodb://mongodb:27017/analise-agro?authSource=admin
- MONGO_DB_USER=mongodbUser
- MONGO_DB_PWD=mongodbPass
networks:
default:
ipam:
driver: default
config:
- subnet: 172.17.1.0/24