-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
115 lines (114 loc) · 2.97 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
version: "3.7"
services:
db:
container_name: osint-framework-db
image: postgres:alpine
restart: unless-stopped
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-osint_framework}
POSTGRES_USER: ${POSTGRES_USER:-osint_framework}
PGDATA: /data/postgres
healthcheck:
test: pg_isready -U osint_framework
interval: 30s
timeout: 5s
retries: 5
ports:
- "127.0.0.1:5432:5432"
volumes:
- postgres:/data/postgres
networks:
- postgres
redis:
container_name: osint-framework-redis
image: redis:alpine
healthcheck:
test: redis-cli ping
interval: 30s
timeout: 5s
retries: 5
networks:
- redis
restart: unless-stopped
rabbitmq:
container_name: osint-framework-rabbitmq
image: rabbitmq:alpine
restart: unless-stopped
healthcheck:
test: nc -z localhost 5672
interval: 30s
timeout: 5s
retries: 5
ports:
- "127.0.0.1:5672:5672"
networks:
- rabbitmq
consumer:
image: osint-framework-consumer:1.0
restart: on-failure
depends_on:
- db
- rabbitmq
healthcheck:
test: nc -z osint-framework-rabbitmq 5672
interval: 30s
timeout: 5s
retries: 5
environment:
POSTGRES_DATABASE: ${POSTGRES_DATABASE:-osint}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-osint_framework}
POSTGRES_USER: ${POSTGRES_USER:-osint_framework}
POSTGRES_HOST: ${POSTGRES_HOST:-osint-framework-db}
POSTGRES_PORT: ${POSTGRES_PORT:-5432}
RABBITMQ_HOST: ${RABBITMQ_HOST:-osint-framework-rabbitmq}
RABBITMQ_PORT: ${RABBITMQ_PORT:-5672}
LOG_HANDLER: ${LOG_HANDLER:-stream}
build:
context: .
target: osint-framework-consumer
dockerfile: docker/consumer/Dockerfile
networks:
- postgres
- rabbitmq
server:
container_name: osint-framework-server
image: osint-framework-server:1.0
restart: on-failure
depends_on:
- db
- rabbitmq
environment:
POSTGRES_DATABASE: ${POSTGRES_DATABASE:-osint}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-osint_framework}
POSTGRES_USER: ${POSTGRES_USER:-osint_framework}
POSTGRES_HOST: ${POSTGRES_HOST:-osint-framework-db}
POSTGRES_PORT: ${POSTGRES_PORT:-5432}
RABBITMQ_HOST: ${RABBITMQ_HOST:-osint-framework-rabbitmq}
RABBITMQ_PORT: ${RABBITMQ_PORT:-5672}
REDIS_HOST: ${REDIS_HOST-osint-framework-redis}
LOG_HANDLER: ${LOG_HANDLER:-stream}
build:
context: .
target: osint-framework-server
dockerfile: docker/server/Dockerfile
healthcheck:
test: curl --fail -s http://localhost:8888/api/health || exit 1
interval: 30s
timeout: 5s
retries: 5
ports:
- "8888:8888"
networks:
- postgres
- rabbitmq
- redis
networks:
postgres:
driver: bridge
rabbitmq:
driver: bridge
redis:
driver: bridge
volumes:
postgres: