| name: pram | |
| services: | |
| postgres: | |
| image: postgres | |
| container_name: pram-postgres | |
| environment: | |
| POSTGRES_DB: pram | |
| POSTGRES_USER: postgres | |
| POSTGRES_PASSWORD: password | |
| ports: | |
| - "5432:5432" | |
| volumes: | |
| - pram_postgres_data:/var/lib/postgresql | |
| healthcheck: | |
| test: ["CMD-SHELL", "pg_isready -U postgres"] | |
| interval: 10s | |
| timeout: 5s | |
| retries: 5 | |
| restart: unless-stopped | |
| redis: | |
| image: redis:7-alpine | |
| container_name: pram-redis | |
| ports: | |
| - "6379:6379" | |
| volumes: | |
| - pram_redis_data:/data | |
| healthcheck: | |
| test: ["CMD", "redis-cli", "ping"] | |
| interval: 10s | |
| timeout: 5s | |
| retries: 5 | |
| restart: unless-stopped | |
| volumes: | |
| pram_postgres_data: | |
| pram_redis_data: | |