forked from toluaina/pgsync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (53 loc) · 1.37 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
version: '3.8'
services:
postgres:
image: debezium/postgres:16
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
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
- OPENSEARCH=false