mirror of
https://github.com/dedicatedcode/reitti.git
synced 2026-01-10 09:57:57 -05:00
* feat: enable actuator health endpoint and add Docker healthcheck * - added application-docker.properties - update Dockerfile and corrosponding docker-compose.yml * - removed init.sql * docs: update environment variables in README and Docker Hub description * docs: update environment variables section to table format * - removed generated-requests.http - updated application-docker.properties
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
services:
|
|
reitti:
|
|
image: dedicatedcode/reitti:latest
|
|
ports:
|
|
- 8080:8080
|
|
depends_on:
|
|
rabbitmq:
|
|
condition: service_healthy
|
|
postgis:
|
|
condition: service_healthy
|
|
restart: true
|
|
postgis:
|
|
image: postgis/postgis:17-3.5-alpine
|
|
environment:
|
|
POSTGRES_USER: reitti
|
|
POSTGRES_PASSWORD: reitti
|
|
POSTGRES_DB: reittidb
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgis-data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U reitti -d reittidb"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
rabbitmq:
|
|
image: rabbitmq:3-management-alpine
|
|
ports:
|
|
- "5672:5672" # AMQP protocol port
|
|
- "15672:15672" # Management UI port
|
|
environment:
|
|
RABBITMQ_DEFAULT_USER: reitti
|
|
RABBITMQ_DEFAULT_PASS: reitti
|
|
volumes:
|
|
- rabbitmq-data:/var/lib/rabbitmq
|
|
healthcheck:
|
|
test: ["CMD", "rabbitmq-diagnostics", "check_port_connectivity"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 5
|
|
|
|
volumes:
|
|
postgis-data:
|
|
rabbitmq-data:
|