forked from intelowlproject/IntelOwl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-for-tests.yml
86 lines (78 loc) · 2.31 KB
/
docker-compose-for-tests.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
version: '3'
services:
postgres:
image: library/postgres:12.1-alpine
container_name: intel_owl_postgres
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./env_file_postgres
uwsgi:
build: .
container_name: intel_owl_uwsgi
volumes:
- ./configuration/intel_owl.ini:/etc/uwsgi/sites/intel_owl.ini
- ./configuration/analyzer_config.json:/opt/deploy/configuration/analyzer_config.json
- generic_logs:/var/log/intel_owl
- static_content:/opt/deploy/intel_owl/static
- shared_files:/opt/deploy/files_required
entrypoint:
- ./docker_entrypoint.sh
expose:
- "8001"
env_file:
- env_file_app
depends_on:
- postgres
nginx:
image: library/nginx:1.16.1-alpine
container_name: intel_owl_nginx
restart: unless-stopped
hostname: nginx
volumes:
- ./configuration/intel_owl_nginx_http:/etc/nginx/conf.d/default.conf
- nginx_logs:/var/log/nginx
- static_content:/var/www/static
ports:
- "80:80"
- "443:443"
depends_on:
- uwsgi
rabbitmq:
image: library/rabbitmq:3.8.2-alpine
container_name: intel_owl_rabbitmq
celery_beat:
build: .
container_name: intel_owl_celery_beat
restart: unless-stopped
command: /usr/local/bin/celery -A intel_owl.celery beat --uid www-data --gid www-data --pidfile=/tmp/celerybeat.pid --schedule=/tmp/celerybeat-schedule
volumes:
- ./configuration/analyzer_config.json:/opt/deploy/configuration/analyzer_config.json
- generic_logs:/var/log/intel_owl
- shared_files:/opt/deploy/files_required
env_file:
- env_file_app
depends_on:
- rabbitmq
- postgres
celery_worker:
build: .
container_name: intel_owl_celery_worker
restart: unless-stopped
stop_grace_period: 3m
command: /usr/local/bin/celery -A intel_owl.celery worker --uid www-data --gid www-data --pidfile="/tmp/%n.pid" --time-limit=1000
volumes:
- ./configuration/analyzer_config.json:/opt/deploy/configuration/analyzer_config.json
- generic_logs:/var/log/intel_owl
- shared_files:/opt/deploy/files_required
env_file:
- env_file_app
depends_on:
- rabbitmq
- postgres
volumes:
postgres_data:
nginx_logs:
generic_logs:
static_content:
shared_files: