0

Hi I am creating a little go binary for custom health information from a Virtuoso db (this all runs in K8s but doing testing locally with docker-compose). I am installing the isql binary on an Alpine container (and copying my go binary to it), however I am unable to connect to the database (even when on same network), I am using the following command to test: isql localhost:1111 dba dba but I always get this error: [ISQL]ERROR: Could not SQLConnect.

What am I doing wrong? Here is my docker-compose file:

version: "3.9"
services:
  virtuoso:
    image: openlink/virtuoso-opensource-7
    environment:
      - DBA_PASSWORD=dba
    ports:
      - "1111:1111"
      - "8890:8890"
    networks:
      - virtuosonet
  health:
    build:
      context: .
      dockerfile: Dockerfile
    environment:
      - VIRT_USERNAME=dba
      - VIRT_PASSWORD=dba
    entrypoint: sh -c "sleep 300"
    networks:
      - virtuosonet
networks:
  virtuosonet:
user1314147
  • 174
  • 1
  • 5
  • 25

0 Answers0