-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
75 lines (68 loc) · 1.74 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
version: '2'
services:
#elasticsearch:
#image: elasticsearch:latest
#volumes:
#- /mnt/data/ct-infrastructure/elasticsearch/data:/usr/share/elasticsearch/data
#ports:
#- 9200:9200
#- 9300:9300
#kibana:
#image: kibana:latest
#links:
#- elasticsearch:elasticsearch
#ports:
#- 5601:5601
ctdatabase:
restart: always
build:
context: .
dockerfile: database/Dockerfile
entrypoint: /config.sh
volumes:
- /mnt/data/ct-infrastructure/ctdatabase:/var/lib/postgresql/data
ports:
- 5433:5432
command: postgres
ctobservatory:
restart: always
build:
context: .
dockerfile: observatory/Dockerfile
volumes:
- /mnt/data/ct-infrastructure/misc:/static/data
environment:
- POSTGRESHOST=ctdatabase
- VIRTUAL_HOST=localhost
- VIRTUAL_PORT=7801
links:
- ctdatabase:ctdatabase
ports:
- 80:80
- 443:443
ctanalyzer:
build:
context: .
dockerfile: analyzer/Dockerfile
volumes:
- /mnt/data/ct-infrastructure/misc:/data
environment:
- POSTGRESHOST=ctdatabase
links:
- ctdatabase:ctdatabase
#- elasticsearch:elasticsearch
- ctobservatory:ctobservatory
command: python2 /analyzer/analyzer.py --pg=ctdatabase --web=www.ct-observatory.org --t=60 -m -x -g
# command: /analyzer/idle.sh
ctmonitor:
build:
context: .
dockerfile: monitor/Dockerfile
volumes:
- /mnt/data/ct-infrastructure/misc:/data
environment:
- POSTGRESHOST=ctdatabase
links:
- ctdatabase:ctdatabase
command: python3 /monitor/monitorInPython.py --dbhost=ctdatabase
# command: /monitor/idle.sh