skip to Main Content

Unable to connect to docker mongo db from spring

I am trying to connect to my docker mongo db. I have this docker-compose: version: '3.8' services: mongo: image: mongo container_name: mongodb restart: always environment: MONGO_INITDB_ROOT_USERNAME: root MONGO_INITDB_ROOT_PASSWORD: example mongo-express: image: mongo-express container_name: mongo-express restart: always ports: - 8081:8081 environment:…

VIEW QUESTION

Why does my docker-compose.yml file dont find my Dockerfile*end file

I am trying to make a docker container run off of my docker-compose file: version: '3' services: memory_Backend: build: context: ./ dockerfile: ./project/docker/DockerfileBackend image: memoryapi_ad_img volumes: - ./:/var/lib ports: - 15555:25555 memory_Frontend: build: context: ./ dockerfile: ./project/docker/DockerfileFrontend image: memorywebsite_ad_img volumes:…

VIEW QUESTION

Exit status 1 while running docker compose of spring boot application with mysql db

I am trying to docrize an application of spring boot which also utilizes a mysql db also Below is the docker file FROM maven:3.8.3-openjdk-17 AS build EXPOSE 8081 ADD /target/oks-0.0.1-SNAPSHOT.jar oks-0.0.1-SNAPSHOT.jar ENTRYPOINT ["java","-jar","oks-0.0.1-SNAPSHOT.jar"] The application-develop.properties is below spring.datasource.url=jdbc:mysql://localhosts:3306/oks?useUnicode=true&characterEncoding=utf8 spring.datasource.username=root spring.datasource.password…

VIEW QUESTION
Back To Top
Search