The Docker image is available from GitHub Container Registry:
docker pull ghcr.io/opendonationassistant/oda-donationgoal-service:latest| Variable | Description | Default |
|---|---|---|
RABBITMQ_HOST |
RabbitMQ server hostname | localhost |
JDBC_URL |
PostgreSQL JDBC connection URL | jdbc:postgresql://localhost/postgres?currentSchema=donationgoal |
JDBC_USER |
Database username | postgres |
JDBC_PASSWORD |
Database password | postgres |
docker run -d \
--name donationgoal-service \
-p 8080:8080 \
-e RABBITMQ_HOST=rabbitmq-host \
-e JDBC_URL=jdbc:postgresql://postgres-host/postgres?currentSchema=donationgoal \
-e JDBC_USER=postgres \
-e JDBC_PASSWORD=your-password \
ghcr.io/opendonationassistant/oda-donationgoal-service:latestMake sure PostgreSQL and RabbitMQ are running and accessible before starting the service.
Here's a complete docker-compose.yml example that sets up the donationgoal-service along with PostgreSQL and RabbitMQ:
version: '3.8'
services:
donationgoal-service:
image: ghcr.io/opendonationassistant/oda-donationgoal-service:latest
ports:
- "8080:8080"
environment:
- RABBITMQ_HOST=rabbitmq
- JDBC_URL=jdbc:postgresql://postgres:5432/postgres?currentSchema=donationgoal
- JDBC_USER=postgres
- JDBC_PASSWORD=postgres
depends_on:
- postgres
- rabbitmq
restart: unless-stopped
postgres:
image: postgres:16
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
volumes:
- postgres-data:/var/lib/postgresql/data
restart: unless-stopped
rabbitmq:
image: rabbitmq:3-management
ports:
- "15672:15672" # RabbitMQ Management UI
volumes:
- rabbitmq-data:/var/lib/rabbitmq
restart: unless-stopped
volumes:
postgres-data:
rabbitmq-data:To run all services:
docker-compose up -dThe service will be available at http://localhost:8080 and the RabbitMQ Management UI at http://localhost:15672.