-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (62 loc) · 1.78 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
version: "2"
services:
hmrc-redis:
container_name: redis
image: redis
ports:
- 6379:6379
volumes:
- hmrc-redis:/data
hmrc-postgres:
container_name: postgres
image: postgres:13.10
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_USER=william
- POSTGRES_PASSWORD=
- LANG=C.UTF-8
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_WORK_MEM=32MB
ports:
- 5432:5432
volumes:
- hmrc-postgres-13:/var/lib/postgresql/data
hmrc-opensearch:
container_name: hmrc-opensearch
image: opensearchproject/opensearch:2
ports:
- 127.0.0.1:9200:9200
- 127.0.0.1:9300:9300
environment:
- bootstrap.memory_lock=true
- discovery.type=single-node
- "OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g"
- cluster.routing.allocation.disk.threshold_enabled=false
- plugins.security.disabled=true
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
healthcheck:
interval: 60s
retries: 10
test: curl -s http://localhost:9200/_cluster/health | grep -vq '"status":"red"'
volumes:
- hmrc-es:/usr/share/opensearch/data
- /home/william/Repositories/hmrc/trade-tariff-backend/config/opensearch/synonyms_all.txt:/usr/share/opensearch/config/synonyms_all.txt
- /home/william/Repositories/hmrc/trade-tariff-backend/config/opensearch/stemming_exclusions_all.txt:/usr/share/opensearch/config/stemming_exclusions_all.txt
# - /home/william/opensearch.yml:/usr/share/opensearch/config/opensearch.yml
volumes:
hmrc-redis:
driver: local
hmrc-postgres-10:
driver: local
hmrc-postgres-13:
driver: local
hmrc-mysql-8:
driver: local
hmrc-es:
driver: local