Docker Community Forums

Share and learn in the Docker community.

Docker-Compose with Eureka

Hello;

I’m trying to create an application with Docker Compose and Spring Boot and a service written in java.
The application written in java I only have the docker image which I have pulled. I wrote docker-compose file with my services but the image pulled from docker it isn’t register with eureka. Do I need to wite something special. here is a preview of my docker-compose file. Please advise If I need to change something.My problem is camera agent it is not register with eureka

indent preformatted text by 4 spaces

version: ‘3’
services:

eureka-discovery:
image: eureka-discovery
ports:
- “9085:9085”
camera-agent:
image: cc/camera-agent
expose:
- “5000”
ports:
- “5000:9085”
environment:
- REGISTRY_HOST=http://eureka-discovery:9085/eureka/
depends_on:
- eureka-discovery
collector:
image: collector
environment:
- REGISTRY_HOST=http://eureka-discovery:9085/eureka/
ports:
- “8085:8085”
depends_on:
- eureka-discovery