forked from shawnhank/eiq-er-ce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·124 lines (124 loc) · 2.73 KB
/
docker-compose.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
version: '3'
services:
plgx-esp:
build:
context: ./
dockerfile: ./Dockerfile
ports:
- "6000:6000"
- "5555:5555"
depends_on:
- rabbit1
- postgres
env_file:
- .env
environment:
- POLYLOGYX_ENV=prod
volumes:
- carves:/src/plgx-esp/carves
- container_logs:/var/log
restart: always
external_links:
- rabbit1:rabbit1
- postgres:postgres
celery:
build:
context: ./
dockerfile: ./Dockerfile_celery
depends_on:
- rabbit1
- postgres
env_file:
- .env
environment:
- POLYLOGYX_ENV=prod
shm_size: ${SHARED_MEMORY}
volumes:
- carves:/src/plgx-esp/carves
restart: always
external_links:
- rabbit1:rabbit1
- postgres:postgres
plgx-esp-ui:
build:
context: ./
dockerfile: ./Dockerfile_ui
ports:
- "5001:5001"
depends_on:
- plgx-esp
env_file:
- .env
environment:
- POLYLOGYX_ENV=prod
restart: always
external_links:
- rabbit1:rabbit1
- postgres:postgres
volumes:
- carves:/src/plgx-esp-ui/resources/carves
- yara:/src/plgx-esp-ui/resources/yara
- status_log:/src/plgx-esp-ui/resources/status_log
- container_logs:/var/log/
rabbit1:
image: rabbitmq:3.9.11-management-alpine
ports:
- "15672:15672"
- "5673:5673"
- "5672:5672"
shm_size: ${SHARED_MEMORY}
volumes:
#- rabbitmq:/var/lib/rabbitmq:rw
- ./definitions.json:/opt/definitions.json:ro
- ./rabbitmq.config:/etc/rabbitmq/rabbitmq.config:ro
restart: always
nginx:
build:
context: ./nginx/
dockerfile: ./Dockerfile
env_file:
- .env
depends_on:
- plgx-esp
external_links:
- plgx-esp:plgx-esp
volumes:
- carves:/carves
- ./nginx:/etc/nginx:ro
- ./resources:/resources
- ./dist:/dist
- yara:/resources/yara
- status_log:/resources/status_log
- container_logs:/var/log/
restart: always
ports:
- "443:443"
- "9000:9000"
- "5000:5000"
# 5000 and 9000 ports are required for backward support prior to 3.0.1
postgres:
image: "postgres:11.14"
command: postgres -c 'max_connections=1000'
env_file:
- .env
ports:
- "${POSTGRES_PORT}:${POSTGRES_PORT}"
environment:
- POSTGRES_DB=${POSTGRES_DB_NAME}
shm_size: ${SHARED_MEMORY}
volumes:
- postgres-data:/var/lib/postgresql/data
restart: always
rsyslogf:
build:
context: ./rSysLogF
dockerfile: Dockerfile
ports:
- "514:514"
restart: always
volumes:
postgres-data:
carves:
yara:
status_log:
container_logs: