diff --git a/docker-compose.test.yml b/docker-compose.test.yml new file mode 100644 index 0000000..8799bb3 --- /dev/null +++ b/docker-compose.test.yml @@ -0,0 +1,21 @@ +version: '3.8' + +services: + postgres-test: + image: postgres:16-alpine + environment: + POSTGRES_USER: app + POSTGRES_PASSWORD: testpass + POSTGRES_DB: memory + ports: + - "5433:5432" + volumes: + - postgres-test-data:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -U app -d memory"] + interval: 2s + timeout: 5s + retries: 10 + +volumes: + postgres-test-data: