-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
131 lines (125 loc) · 2.38 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
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
---
version: "3.9"
services:
db:
build:
context: ./sql
dockerfile: Dockerfile
environment:
- POSTGRES_USER=blocked
- POSTGRES_PASSWORD=blocked
amqp:
image: rabbitmq:3
environment:
- RABBITMQ_DEFAULT_USER=blocked
- RABBITMQ_DEFAULT_PASS=blocked
api:
build:
args:
deployment: production
context: .
dockerfile: Dockerfile
command: -S 0.0.0.0:8080
ports:
- 8080:8080
links:
- db
- amqp
profiles:
- prod
#volumes:
# - ./api/1.2:/var/www/api/1.2
# - ./backend:/var/www/backend
# - ./config:/var/www/config
api_dev:
build:
args:
deployment: development
context: .
dockerfile: Dockerfile
command: -S 0.0.0.0:8080
profiles:
- dev
ports:
- 8080:8080
links:
- db
- amqp
volumes:
- ./api/1.2:/var/www/api/1.2
- ./backend:/var/www/backend
- ./config:/var/www/config
- ./tests:/var/www/tests
record:
build:
args:
deployment: development
context: .
dockerfile: Dockerfile
command: php ../backend/record_results.php --create
links:
- db
- amqp
example:
build:
args:
deployment: development
context: example-client
dockerfile: Dockerfile
command: -S 0.0.0.0:8081
profiles:
- dev
ports:
- 8081:8081
links:
- "api_dev:api"
volumes:
- ./example-client:/var/www/example-client
fakeprobe:
build:
context: backend/fakeprobe
dockerfile: Dockerfile
links:
- amqp
profiles:
- dev
checker:
build:
context: backend/queue-services
dockerfile: Dockerfile
command: python checker.py
links:
- db
- amqp
depends_on:
- record
metadata:
build:
context: backend/queue-services
dockerfile: Dockerfile
command: python metadata-gather.py
links:
- db
- amqp
depends_on:
- record
whois:
build:
context: backend/queue-services
dockerfile: Dockerfile
command: python whois-lookup.py
links:
- db
- amqp
depends_on:
- record
category:
build:
context: backend/queue-services
dockerfile: Dockerfile
command: python categoryimporter.py
links:
- db
- amqp
depends_on:
- record