feat: added tests

This commit is contained in:
ITQ
2025-01-29 20:24:05 +03:00
parent 82a5a50c4b
commit 9d3fae947b
38 changed files with 4743 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
name: promocode
services:
app:
build: ../solution
ports:
- 12320:8080
environment:
- SERVER_ADDRESS=0.0.0.0:8080
- SERVER_PORT=8080
- POSTGRES_CONN=postgres://postgres:postgres@postgres:5432/postgres
- POSTGRES_JDBC_URL=jdbc:postgresql://postgres:5432/postgres
- POSTGRES_USERNAME=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- POSTGRES_DATABASE=postgres
- REDIS_HOST=redis
- REDIS_PORT=6379
- ANTIFRAUD_ADDRESS=antifraud:9090
- RANDOM_SECRET=yourRandomSecret128charsHere1234567890abcdef
depends_on:
- postgres
- redis
- antifraud
postgres:
image: postgres:16.6-alpine3.21
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
volumes:
- postgres_data:/var/lib/postgresql/data
shm_size: 128mb
redis:
image: redis:7.4-alpine3.21
antifraud:
image: docker.io/lodthe/prod-backend-antifraud:latest
ports:
- 12321:9090
environment:
- SERVER_PORT=9090
- NUMBER_KILLER_REQUEST=4
- CACHE_DURATION_MS=3000
- BLOCKED_EMAILS=blocked@antifraud.com
- SLOWDOWN_AFTER=slowdown@antifraud.ru
volumes:
postgres_data: