Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to configure datasource #182

Open
samindaperamuna opened this issue Jan 1, 2023 · 2 comments
Open

Failed to configure datasource #182

samindaperamuna opened this issue Jan 1, 2023 · 2 comments

Comments

@samindaperamuna
Copy link

samindaperamuna commented Jan 1, 2023

I am working with version 1.7.0 and set up both Postgres and Rabbit as specified on the readme file. I am getting the following error and as no other documentation is available can someone point me in the right direction.

notifier-api_1     | 
notifier-api_1     | Failed to configure a DataSource: no embedded datasource could be configured.
notifier-api_1     | 
notifier-api_1     | Reason: Failed to determine a suitable driver class```
@dnavre
Copy link
Collaborator

dnavre commented Jan 2, 2023 via email

@samindaperamuna
Copy link
Author

version: '3.5'
services:
  notifier-api:
    image: 'sflpro/notifier-api:1.7.0'
    ports:
      - '9000:9000'
    depends_on:
      - notifier-worker
    environment:
      - 'SPRING_DATASOURCE_URL=jdbc:postgres://localhost:5432/notifier'
      - SPRING_DATASOURCE_USERNAME=postgres
      - SPRING_DATASOURCE_PASSWORD=postgres      
      - SPRING_FLYWAY_ENABLED=true
      - SPRING_RABBITMQ_HOST=localhost
      - SPRING_RABBITMQ_USERNAME=admin
      - SPRING_RABBITMQ_PASSWORD=password
      - NOTIFIER_QUEUE_ENGINE=rabbit
  notifier-worker:
    image: 'sflpro/notifier-worker:1.7.0'
    restart: on-failure
    environment:
      - 'SPRING_DATASOURCE_URL=jdbc:postgres://localhost:5432/notifier'
      - SPRING_DATASOURCE_USERNAME=postgres
      - SPRING_DATASOURCE_PASSWORD=postgres
      - SPRING_FLYWAY_ENABLED=true
      - SPRING_RABBITMQ_HOST=localhost
      - SPRING_RABBITMQ_USERNAME=admin
      - SPRING_RABBITMQ_PASSWORD=password
      - NOTIFIER_QUEUE_ENGINE=rabbit

This is my compose YML
I connect to other containers for Postgres and RabbitMQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants