skip to Main Content

Cannot mount volumes inside docker-compose

I have this docker compose in my repo version: "3.9" services: service: image: <REGISTRIY_LINK_TO_IMG> platform: linux/x86_64 build: context: . dockerfile: Dockerfile ports: - "8080:8080" - "8081:8081" gql-schema-verify: image: <REGISTRIY_LINK_TO_IMG> entrypoint: [] volumes: - ./service/src/main/resources/graphql:/home/node/updated environment: - VALIDATED_SERVICE=core command: /bin/bash validate…

VIEW QUESTION

Custom Docker image on Git Lab Job cannot connect to localhost

I've created a very simple custom Docker image: FROM postgis/postgis:16-3.4-alpine ENV POSTGRES_USER=postgres ENV POSTGRES_PASSWORD=secret ENV POSTGRES_DB=lopost_test_db ENV PGDATA=/data/postgres ENV POSTGRES_HOST_AUTH_METHOD=trust Now I'm trying to run the following gitlab job test: image: $CI_REGISTRY_IMAGE/ci_test stage: test environment: name: Production script: - psql…

VIEW QUESTION
Back To Top
Search