-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.test.yaml
61 lines (58 loc) · 1.26 KB
/
docker-compose.test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: '3'
services:
abf.com:
image: abf_test:1.0
build:
context: ./antibruteforce
dockerfile: Dockerfile.multistage
container_name: ab_test
environment:
POSTGRES_PASSWORD: 123456
POSTGRES_USER: postgres
POSTGRES_DB: force
POSTGRES_HOST: db.test
LOGIN_LIMIT: 10
PASSWORD_LIMIT: 100
IP_LIMIT: 1000
DURATION: 60
BUILD: dev
GRPC_PORT: 50051
GRPC_HOST: 0.0.0.0
GRPC_TOKEN: secret
command: sh -c './wait-for.sh db.test:5432 -- ./abf grpc'
depends_on:
- db.test
restart: on-failure
networks:
- net
integration_test:
image: abf_integration:1.0
build: ./integration_test
environment:
GRPC_PORT: 50051
GRPC_HOST: abf.com
LOGIN_LIMIT: 10
PASSWORD_LIMIT: 15
IP_LIMIT: 20
depends_on:
- db.test
- abf.com
command: "true"
networks:
- net
db.test:
image: postgres:11.2
container_name: postgres_test
environment:
POSTGRES_PASSWORD: 123456
POSTGRES_USER: postgres
POSTGRES_DB: force
networks:
- net
ports:
- "5432:5432"
volumes:
- ./antibruteforce/sql/setup.sql:/docker-entrypoint-initdb.d/setup.sql
networks:
net:
driver: bridge