-
Notifications
You must be signed in to change notification settings - Fork 24
/
splunk-secure.yml
155 lines (145 loc) · 3.72 KB
/
splunk-secure.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
version: '2'
services:
# PostgreSQL database
postgres:
container_name: "postgres"
image: postgres:10.4-alpine
hostname: postgres
env_file:
- ./envs/postgres-dev.env
ports:
- "5432:5432"
volumes:
- ./data/postgres:/var/lib/postgresql/data
# pgAdmin
pgadmin:
container_name: "pgadmin"
image: jayjohnson/pgadmin4:1.0.0
hostname: pgadmin
env_file:
- ./envs/pgadmin-dev.env
ports:
- "83:5050"
volumes:
- ./data/pgadmin:/data
# Redis
redis:
container_name: "redis"
hostname: redis
image: redis:4.0.10-alpine
ports:
- "6379:6379"
# Jupyter notebooks, converted noteooks as presentation html slides, and tensorboard
jupyter:
container_name: "jupyter"
hostname: jupyter
image: jayjohnson/antinex-jupyter:latest
network_mode: "host"
env_file:
- ./envs/splunk.env
environment:
- JUPYTER_PASS=admin
- SHARED_DIR=/opt/data
- BROKER_URL=redis://0.0.0.0:6379/6
- LOG_NAME=nb
- ENV_NAME=aws
- DEPLOY_CONFIG=1
ports:
- "8888:8888"
- "8889:8889"
- "8890:8890"
- "6006:6006"
entrypoint: "/opt/antinex/core/docker/jupyter/start-container.sh"
# AntiNex Celery Worker for using pre-trained models
core:
container_name: "core"
hostname: core
image: jayjohnson/antinex-core:latest
network_mode: "host"
env_file:
- ./envs/splunk.env
environment:
- SHARED_DIR=/opt/data
- BROKER_URL=redis://0.0.0.0:6379/6
- LOG_NAME=core
- ENV_NAME=aws
- DEPLOY_CONFIG=1
volumes:
- /tmp:/tmp
depends_on:
- postgres
- redis
entrypoint: "/bin/sh -c 'cd /opt/antinex/api &&
/opt/antinex/core/run-antinex-core.sh'"
# Django Rest Framework + JWT + Swagger
api:
container_name: "api"
hostname: api
image: jayjohnson/antinex-api:latest
network_mode: "host"
environment:
# for nginx hosting the statics need to be
# deployed on startup to the mounted volume
- SKIP_COLLECT_STATICS=0
- LOG_NAME=api
- ENV_NAME=aws
- DEPLOY_CONFIG=1
env_file:
- ./envs/splunk.env
ports:
- "8010:8010"
volumes:
- /tmp:/tmp
- /opt/antinex/static:/opt/antinex/api/webapp/staticfiles
- ./run-django.sh:/opt/antinex/api/run-django.sh
depends_on:
- postgres
- redis
entrypoint: "/bin/sh -c 'cd /opt/antinex/api &&
/opt/antinex/api/run-django.sh'"
# Django Rest Framework Celery Worker
worker:
container_name: "worker"
hostname: worker
image: jayjohnson/antinex-worker:latest
network_mode: "host"
env_file:
- ./envs/splunk.env
environment:
- LOG_NAME=worker
- ENV_NAME=aws
- DEPLOY_CONFIG=1
volumes:
- /tmp:/tmp
depends_on:
- api
- postgres
- redis
entrypoint: "/bin/sh -c 'cd /opt/antinex/api &&
/opt/antinex/api/run-worker.sh'"
# Network Pipeline Packet Processor
# auto-publishes to the Django Rest Framework
# for making predictions on network traffic
# using pre-trained deep neural networks
# running in the AntiNex Core
pipeline:
container_name: "pipeline"
hostname: pipeline
image: jayjohnson/antinex-pipeline:latest
network_mode: "host"
env_file:
- ./envs/pipeline-dev.env
environment:
- LOG_NAME=pipe
- ENV_NAME=aws
- DEPLOY_CONFIG=1
volumes:
- /tmp:/tmp
depends_on:
- api
- core
- postgres
- redis
entrypoint: "/bin/sh -c 'cd /opt/antinex/pipeline &&
. /opt/venv/bin/activate &&
/opt/antinex/pipeline/network_pipeline/scripts/packets_redis.py'"