skip to Main Content

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