-
-
Notifications
You must be signed in to change notification settings - Fork 112
/
docker-compose.with-engines.yml
79 lines (72 loc) · 1.84 KB
/
docker-compose.with-engines.yml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3'
services:
rabbitmq:
image: rabbitmq:3-alpine
container_name: patrowl-rabbitmq
environment:
- RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS=-rabbit log_levels [{connection,error}]
expose:
- '5672'
db:
image: postgres:11-alpine
restart: always
container_name: patrowl-postgres
environment:
- POSTGRES_DB=patrowl_db
- POSTGRES_USER=PATROWL_DB_USER
- POSTGRES_PASSWORD=PATROWL_DB_PASSWD_TO_CHANGE
expose:
- '5432'
volumes:
- ./var/db/init_db.sql:/docker-entrypoint-initdb.d/init_db.sql
# - ./pg_data:/var/lib/postgresql/data/
web:
container_name: patrowl-django
build: .
image: patrowl/patrowl-manager-community-edition:${PATROWL_MANAGER_VERSION}
environment:
- POSTGRES_HOST=db
- DEBUG=False
- RABBITMQ_HOSTNAME=rabbitmq:5672
depends_on:
- db
- rabbitmq
expose:
- "8003"
volumes:
- ./staticfiles:/opt/patrowl-manager/staticfiles
- ./media:/opt/patrowl-manager/media
links:
- db
- rabbitmq
entrypoint: ./docker-entrypoint.with-engines.sh
nginx:
image: nginx:stable-alpine
container_name: patrowl-nginx
ports:
- "8083:8083"
volumes:
- ./staticfiles:/opt/patrowl-manager/staticfiles
# - ./media:/opt/patrowl-manager/media
- ./var/log:/opt/patrowl-manager/var/log
- ./nginx_docker.conf:/etc/nginx/conf.d/default.conf
depends_on:
- web
engine-nmap:
image: patrowl/engine-nmap
restart: always
container_name: patrowl-nmap
expose:
- '5001'
engine-sslscan:
image: patrowl/engine-sslscan
restart: always
container_name: patrowl-sslscan
expose:
- '5014'
engine-owl_dns:
image: patrowl/engine-owl_dns
restart: always
container_name: patrowl-owl_dns
expose:
- '5006'