Category : rest

I am trying to use my docker-compose file to run 2 instances of both my database, and my rest api, so that I can run tests on a test instance of the database. version: "3.8" services: db: image: postgres:13.2-alpine container_name: "db-prod" ports: – "5432:5432" environment: – POSTGRES_DB=postgres – POSTGRES_USER=postgres – POSTGRES_PASSWORD=password networks: – fullstack volumes: ..

Read more

Problem description: I have an spring boot application deployed within a docker container. services: application: image: generic-image-placeholder ports: – 8080:8080 Now there is a REST-Controller within the application which demands a file location. The file is always in the host file system and might look like the following: "C:Usersuserimportsfile.csv" I want to read this file ..

Read more

I have 2 different component/images and following docker-compose file. version: ‘3’ services: my_service: image: my_service:latest restart: always environment: – DUMMY=dummy ports: – "8071:8071" command: "" healthcheck: test: ["CMD-SHELL", "[ -f /usr/local/bin ]"] interval: 30s timeout: 30s retries: 3 container_name: my-service-container networks: – my_net my_ui: image: my_ui:latest depends_on: – my_service restart: always ports: – "8080:8080" command: ..

Read more

To begin, here is a simple plan of my problem: Request Connect to 192.168.0.20:4200 — front container send request to middle container —> 172.17.0.2:8080 —-> Middle receive and send to database –> 172.17.0.3:1433 Answer — Database answer to middle –> 172.17.0.2:8080 — Middle send to the front –> 172.17.0.4:4200 I have a problem to connect ..

Read more