-
Notifications
You must be signed in to change notification settings - Fork 24
/
compose.yml
128 lines (118 loc) · 3.03 KB
/
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
125
126
127
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"
environment:
- JUPYTER_PASS=admin
- SHARED_DIR=/opt/data
- BROKER_URL=redis://0.0.0.0:6379/6
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"
environment:
- SHARED_DIR=/opt/data
- BROKER_URL=redis://0.0.0.0:6379/6
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"
env_file:
- ./envs/all-dev.env
ports:
- "8010:8010"
volumes:
- /tmp:/tmp
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/all-dev.env
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
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'"