forked from Netflix/security_monkey
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
69 lines (63 loc) · 1.76 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
---
###
#
# 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:9
#volumes:
# - ./postgres-data/:/var/lib/postgresql/data
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:
- api
env_file: secmonkey.env
entrypoint: ["/usr/local/src/security_monkey/docker/scheduler-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:
- 80:80
- 443:443
links:
- api:smapi