-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
60 lines (55 loc) · 1.4 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
version: '3.8'
services:
# Processing
backend:
build: ./backend
volumes:
- type: bind
source: ./backend
target: /opt/backend
volume:
nocopy: true
command: ["python3", "-m", "spamtrap_backend", "--config", "/opt/backend/config/backend.template.yml"]
restart: on-failure
depends_on:
- mongodb
- rabbitmq
- thugd
#- elasticsearch
#- hpfeeds
network_mode: "host"
# Datastore
mongodb:
extends:
file: ./periphery/mongodb/docker-compose.yml
service: mongodb
# Distributed Thug
thugd:
extends:
file: ./periphery/thugd/docker-compose.yml
service: thugd
depends_on:
- rabbitmq
restart: on-failure
# RabbitMQ Message Broker
#
# For mail ingestion and distributed Thug
rabbitmq:
extends:
file: ./periphery/rabbitmq/docker-compose.yml
service: rabbitmq
# # Alternative: Hpfeeds broker for mail ingestion
# # For testing only, refer to ./periphery/tentacool for a TLS setup
# hpfeeds:
# image: hpfeeds/hpfeeds-broker
# environment:
# HPFEEDS_READER_SECRET: 'secret'
# HPFEEDS_READER_SUBCHANS: 'spam.mails'
# HPFEEDS_WRITER_SECRET: 'secret'
# HPFEEDS_WRITER_PUBCHANS: 'spam.mails'
# command:
# - '/app/bin/hpfeeds-broker'
# - '--endpoint=tcp:port=10000'
# - '--auth=env'
# ports:
# - "0.0.0.0:10000:10000"