-
-
Notifications
You must be signed in to change notification settings - Fork 181
/
docker-compose.yml
61 lines (60 loc) · 1.54 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
version: '3.8'
services:
postgres:
image: debezium/postgres:17
ports:
- "15432:5432"
environment:
- POSTGRES_USER=pgsync
- POSTGRES_PASSWORD=PLEASE_CHANGE_ME
- POSTGRES_DB=postgres
redis:
image: redis
command: redis-server --requirepass PLEASE_CHANGE_ME
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.13
ports:
- "9201:9200"
- "9301:9300"
environment:
- xpack.security.enabled=false
- network.host=127.0.0.1
- http.host=0.0.0.0
kibana:
image: docker.elastic.co/kibana/kibana:7.17.13
ports:
- "5601:5601"
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
depends_on:
- elasticsearch
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 Elasticsearch sync"
com.label-schema.service-type: "daemon"
depends_on:
- postgres
- redis
- elasticsearch
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=elasticsearch
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_AUTH=PLEASE_CHANGE_ME
- ELASTICSEARCH=true