-
-
Notifications
You must be signed in to change notification settings - Fork 185
/
docker-compose-opensearch.yml
51 lines (50 loc) · 1.25 KB
/
docker-compose-opensearch.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
version: '3.8'
services:
postgres:
extends:
file: docker-compose.yml
service: postgres
redis:
extends:
file: docker-compose.yml
service: redis
opensearch:
image: opensearchproject/opensearch:latest
ports:
- "9400:9200"
- "9600:9600"
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "DISABLE_INSTALL_DEMO_CONFIG=true"
- "DISABLE_SECURITY_PLUGIN=true"
pgsync:
build:
context: .
dockerfile: Dockerfile
command: ./runserver.sh
sysctls:
- net.ipv4.tcp_keepalive_time=200
- net.ipv4.tcp_keepalive_intvl=200
- net.ipv4.tcp_keepalive_probes=5
labels:
org.label-schema.name: "pgsync"
org.label-schema.description: "Postgres to OpenSearch sync"
com.label-schema.service-type: "daemon"
depends_on:
- postgres
- redis
- opensearch
environment:
- PG_USER=pgsync
- PG_HOST=postgres
- PG_PORT=5432
- PG_PASSWORD=PLEASE_CHANGE_ME
- LOG_LEVEL=INFO
- ELASTICSEARCH_PORT=9200
- ELASTICSEARCH_SCHEME=http
- ELASTICSEARCH_HOST=opensearch
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_AUTH=PLEASE_CHANGE_ME
- OPENSEARCH=true