forked from Netflix/security_monkey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
93 lines (85 loc) · 2.49 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
---
###
#
# Documentation: http://securitymonkey.readthedocs.io/en/latest/index.html
# http://securitymonkey.readthedocs.io/en/latest/docker.html
#
###
version: '2'
services:
postgres:
container_name: secmonkey-db
image: postgres:10.1
#volumes:
# - ./postgres-data/:/var/lib/postgresql/data
redis:
container_name: secmonkey-redis
image: redis:4
data:
container_name: secmonkey-data
build: .
image: secmonkey:latest
working_dir: /usr/local/src/security_monkey
volumes:
- ./data/aws_accounts.json:/usr/local/src/security_monkey/data/aws_accounts.json
- ./docker:/usr/local/src/security_monkey/docker/
- ./env-config/config-docker.py:/usr/local/src/security_monkey/env-config/config-docker.py
depends_on:
- postgres
env_file: secmonkey.env
api:
container_name: secmonkey-api
image: secmonkey:latest
volumes_from:
- data
depends_on:
- postgres
env_file: secmonkey.env
entrypoint: ["/usr/local/src/security_monkey/docker/api-start.sh"]
scheduler:
container_name: secmonkey-scheduler
image: secmonkey:latest
volumes_from:
- data
depends_on:
- data
- redis
volumes:
- ./docker/celeryconfig.py:/usr/local/src/security_monkey/security_monkey/celeryconfig.py
env_file: secmonkey.env
environment:
- SECURITY_MONKEY_REDIS_HOST=redis
entrypoint: ["/usr/local/src/security_monkey/docker/scheduler-start.sh"]
worker:
container_name: secmonkey-worker
image: secmonkey:latest
volumes_from:
- data
depends_on:
- scheduler
volumes:
- ./docker/celeryconfig.py:/usr/local/src/security_monkey/security_monkey/celeryconfig.py
#- /path/to/creds.file:/usr/local/src/security_monkey/data/creds.file
env_file: secmonkey.env
environment:
- SECURITY_MONKEY_REDIS_HOST=redis
entrypoint: ["/usr/local/src/security_monkey/docker/worker-start.sh"]
nginx:
container_name: secmonkey-nginx
build:
context: .
dockerfile: ./docker/nginx/Dockerfile
image: secmonkey-nginx:latest
working_dir: /etc/nginx
volumes:
- ./docker/nginx/server.crt:/etc/nginx/ssl/server.crt
- ./docker/nginx/server.key:/etc/nginx/ssl/server.key
- ./docker/nginx/conf.d:/etc/nginx/conf.d/
- ./docker/nginx/start-nginx.sh:/usr/local/src/security_monkey/docker/nginx/start-nginx.sh
depends_on:
- api
ports:
- 8000:80
- 8443:443
links:
- api:smapi