✅ Ocelot unable to find /videos
docker-compose.yml
volumes:
datafiles:
services:
api-gateway:
image: ${DOCKER_REGISTRY-}apigateway
build:
context: .
dockerfile: /ApiGateway/ApiGateway.Dockerfile
ports:
- 5003:8080
videos-db:
image: mysql/mysql-server:8.0.23
environment:
MYSQL_ROOT_PASSWORD: password
volumes:
- datafiles:/var/lib/mysql
restart: always
ports:
- 3307:3306
videos-api:
image: ${DOCKER_REGISTRY-}videosapi
build:
context: .
dockerfile: /Videos/Videos.Dockerfile
depends_on:
- api-gateway
- videos-db
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MYSQL_HOST=videos-db
- MYSQL_PORT=3306
- MYSQL_USERNAME=root
- MYSQL_PASSWORD=password
ports:
- 3001:8080volumes:
datafiles:
services:
api-gateway:
image: ${DOCKER_REGISTRY-}apigateway
build:
context: .
dockerfile: /ApiGateway/ApiGateway.Dockerfile
ports:
- 5003:8080
videos-db:
image: mysql/mysql-server:8.0.23
environment:
MYSQL_ROOT_PASSWORD: password
volumes:
- datafiles:/var/lib/mysql
restart: always
ports:
- 3307:3306
videos-api:
image: ${DOCKER_REGISTRY-}videosapi
build:
context: .
dockerfile: /Videos/Videos.Dockerfile
depends_on:
- api-gateway
- videos-db
environment:
- ASPNETCORE_ENVIRONMENT=Development
- MYSQL_HOST=videos-db
- MYSQL_PORT=3306
- MYSQL_USERNAME=root
- MYSQL_PASSWORD=password
ports:
- 3001:8080