-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
78 lines (70 loc) · 1.65 KB
/
docker-compose.test.yml
File metadata and controls
78 lines (70 loc) · 1.65 KB
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
services:
api:
mem_limit: 4g
volumes:
- ./api:/code
ports:
- "8080:80"
- "5677:5677"
- "5678:5678"
entrypoint: [ "bash", "-c", "./entrypoint.dev.sh" ]
networks:
- backend
postgres:
environment:
POSTGRES_DB: ${POSTGRES_DB:-misp_test}
opensearch:
environment:
- cluster.name=opensearch-cluster
- node.name=opensearch-misp1
- discovery.type=single-node
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- "DISABLE_INSTALL_DEMO_CONFIG=true"
- "DISABLE_SECURITY_PLUGIN=true"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
ports:
- "9200:9200"
- "9600:9600"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9200"]
interval: 30s
timeout: 10s
retries: 5
dashboards:
environment:
OPENSEARCH_HOSTS: "http://${OPENSEARCH_HOSTNAME:-opensearch}:${OPENSEARCH_PORT:-9200}"
DISABLE_SECURITY_DASHBOARDS_PLUGIN: true
healthcheck:
test:
[
"CMD-SHELL",
"curl -s --user admin:$$OPENSEARCH_DASHBOARDS_PASSWORD -k -X GET http://localhost:5601/api/status | grep '\"state\":\"green\"'"
]
worker:
volumes:
- ./api:/code
networks:
- backend
mailhog:
image: mailhog/mailhog
ports:
- "8025:8025"
- "1025:1025"
networks:
- backend
garage:
volumes:
- garage-data:/var/lib/garage/data
- garage-meta:/var/lib/garage/meta
- ./garage.test.toml:/etc/garage.toml:ro
networks:
- backend
networks:
backend: