-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
49 lines (47 loc) · 1015 Bytes
/
docker-compose.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
version: '3'
services:
abf:
image: abf:1.0
build:
context: ./antibruteforce
dockerfile: Dockerfile
container_name: ab
environment:
POSTGRES_PASSWORD: 123456
POSTGRES_USER: postgres
POSTGRES_DB: force
POSTGRES_HOST: db
LOGIN_LIMIT: 10
PASSWORD_LIMIT: 100
IP_LIMIT: 1000
DURATION: 10
BUILD: dev
GRPC_PORT: 50051
GRPC_HOST: 0.0.0.0
GRPC_TOKEN: secret
command: ./wait-for-it.sh db:5432 -- go run main.go grpc
depends_on:
- db
restart: on-failure
volumes:
- ./antibruteforce:/code
ports:
- "50051:50051"
networks:
- net
db:
image: postgres:11.6
container_name: postgres
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