-1
I started using Docker a short time ago, I tried the deployment of two applications the angular frontend and an api in python, problem that even in the same network in Docker I can only access the api with the external ip of the internal container presents the error below, wanted only the front container host to be exposed at the end and communication to be fully internal between the 2 containers
Docker-Compose.yml
services:
backend:
build:
context: ./api
dockerfile: Dockerfile
ports:
- "80"
networks:
- devtest
frontend:
container_name: frontend
build: ./ProjectCremona
volumes: # Volume binding
- './ProjectCremona:/usr/src/app'
ports:
- '4200:4200'
networks:
- devtest
command: >
bash -c "npm install && ng serve --host 0.0.0.0 --port 4200"
networks:
devtest:
driver: bridge