| services: | |
| postgres: | |
| image: postgres:17 | |
| container_name: postgres | |
| restart: unless-stopped | |
| environment: | |
| POSTGRES_DB: airavata | |
| POSTGRES_USER: airavata | |
| POSTGRES_PASSWORD: 123456 | |
| ports: | |
| - "15432:5432" | |
| volumes: | |
| - postgres_data:/var/lib/postgresql/data | |
| healthcheck: | |
| test: ["CMD-SHELL", "pg_isready -U airavata -d airavata"] | |
| interval: 10s | |
| timeout: 5s | |
| retries: 5 | |
| adminer: | |
| image: adminer:latest | |
| container_name: adminer | |
| restart: unless-stopped | |
| environment: | |
| ADMINER_DEFAULT_SERVER: postgres | |
| ports: | |
| - "18080:8080" | |
| depends_on: | |
| postgres: | |
| condition: service_healthy | |
| volumes: | |
| postgres_data: |