Skip to content

OpenDonationAssistant/oda-payment-service

Repository files navigation

ODA Payment Service

Ask DeepWiki Sonar Tech Debt Sonar Violations Sonar Tests Sonar Coverage


Running with Docker

The service is published as a Docker image to GitHub Container Registry.

Pull and Run

docker pull ghcr.io/opendonationassistant/oda-payment-service:latest

docker run -d \
  --name oda-payment-service \
  -e RABBITMQ_HOST=<rabbitmq-host> \
  -e JDBC_URL=<jdbc-url> \
  -e JDBC_USER=<db-username> \
  -e JDBC_PASSWORD=<db-password> \
  -p 8080:8080 \
  ghcr.io/opendonationassistant/oda-payment-service:latest

Required Environment Variables

Variable Description Example
RABBITMQ_HOST RabbitMQ server hostname localhost
JDBC_URL PostgreSQL JDBC connection URL jdbc:postgresql://localhost:5432/postgres?currentSchema=payment
JDBC_USER Database username postgres
JDBC_PASSWORD Database password postgres

Example docker-compose.yml

version: '3.8'
services:
  payment-service:
    image: ghcr.io/opendonationassistant/oda-payment-service:latest
    environment:
      - RABBITMQ_HOST=rabbitmq
      - JDBC_URL=jdbc:postgresql://postgres:5432/postgres?currentSchema=payment
      - JDBC_USER=postgres
      - JDBC_PASSWORD=postgres
    ports:
      - "8080:8080"
    depends_on:
      - postgres
      - rabbitmq

  postgres:
    image: postgres:16
    environment:
      - POSTGRES_USER=postgres
      - POSTGRES_PASSWORD=postgres
    volumes:
      - postgres-data:/var/lib/postgresql/data

  rabbitmq:
    image: rabbitmq:3-management
    ports:
      - "5672:5672"
      - "15672:15672"

volumes:
  postgres-data:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors