services: postgres: image: postgres:14 container_name: cucumber_database environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: 12345 POSTGRES_DB: main_database ports: - "5438:5432" volumes: - postgres_data:/var/lib/postgresql/data redis: image: 'redis:latest' ports: - '6379:6379' volumes: - 'cloud-redis:/data' healthcheck: test: - CMD - redis-cli - ping retries: 3 timeout: 5s volumes: postgres_data: driver: local cloud-redis: driver: local