I have a docker-compose.yml file as follows:
version: "3.8"
x-aws-loadbalancer: "arn:aws:elasticloadbalancing:my-load-balancer"
services:
fastapi:
image: username/auth:FastAPI
x-aws-pull_credentials: "arn:aws:secretsmanager:us-west-2:creds"
build: FastAPI
ports:
- "5555:5555"
nginx:
image: username/auth:nginx
x-aws-pull_credentials: "arn:aws:secretsmanager:us-west-2:creds"
build: nginx
ports:
- "80:80"
depends_on:
- fastapi
networks:
default:
external: true
name: my-sg
But when attempting to integrate this with ECS using docker compose up I receive the error:
load balancer "arn:aws:elasticloadbalancing:my-load-balancer" is of type application, project require a network
I have also tried providing a vpc using the top-level x-aws-vpc property and received the same error.
What