ERROR: for app Cannot start service app: Invalid address : It does not belong to any of this network's subnets

I am new to the docker technology, i am trying to build an image on my local but keep having this error.

$ docker-compose up -d
Starting expensesservice_app_1 …
Starting expensesservice_app_1 … error

ERROR: for expensesservice_app_1 Cannot start service app: Invalid address xxx.30.0.9: It does not belong to any of this network’s subnets

ERROR: for app Cannot start service app: Invalid address xxx.30.0.9: It does not belong to any of this network’s subnets
Encountered errors while bringing up the project.

Please how can i resolve this?

can us show us the compose file?

version: ‘2’

services:
web:
build:
context: ./
dockerfile: web.docker
volumes:
- ./:/var/www
ports:
- "8084:80"
links:
- app
networks:
base:
ipv4_address: 173.30.0.8

app:
build:
context: ./
dockerfile: app.docker
volumes:
- ./:/var/www
networks:
base:
ipv4_address: 173.30.0.9
networks:
base:
external:
name: expensetrimcore_base