test(api): add API test on contacts
next will be to add CI on it
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
services:
|
||||
postgres-test:
|
||||
image: postgres:18.2-alpine3.23
|
||||
environment:
|
||||
POSTGRES_USER: oxicloud_test
|
||||
POSTGRES_PASSWORD: oxicloud_test
|
||||
POSTGRES_DB: oxicloud_test
|
||||
ports:
|
||||
- "5433:5432"
|
||||
tmpfs:
|
||||
- /var/lib/postgresql # in-memory: always blank on start (pg18+ uses /var/lib/postgresql/18/data)
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U oxicloud_test"]
|
||||
interval: 2s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
Reference in New Issue
Block a user