xpeditis2.0/docker-compose.test.yml
David 890bc189ee
Some checks failed
CI/CD Pipeline - Xpeditis PreProd / Frontend - Build & Test (push) Failing after 5m31s
CI/CD Pipeline - Xpeditis PreProd / Frontend - Docker Build & Push (push) Has been skipped
CI/CD Pipeline - Xpeditis PreProd / Backend - Build & Test (push) Failing after 5m42s
CI/CD Pipeline - Xpeditis PreProd / Backend - Docker Build & Push (push) Has been skipped
CI/CD Pipeline - Xpeditis PreProd / Deploy to PreProd Server (push) Has been skipped
CI/CD Pipeline - Xpeditis PreProd / Run Smoke Tests (push) Has been skipped
fix v0.2
2025-11-12 18:00:33 +01:00

38 lines
825 B
YAML

version: '3.8'
services:
postgres:
image: postgres:15-alpine
container_name: xpeditis-test-db
environment:
POSTGRES_DB: xpeditis_test
POSTGRES_USER: xpeditis_test
POSTGRES_PASSWORD: xpeditis_test_password
PGDATA: /var/lib/postgresql/data/pgdata
ports:
- '5432:5432'
volumes:
- xpeditis_test_db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U xpeditis_test"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: xpeditis-test-redis
ports:
- '6379:6379'
volumes:
- xpeditis_test_redis:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
volumes:
xpeditis_test_db:
xpeditis_test_redis: