-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
83 lines (82 loc) · 1.87 KB
/
compose.yaml
File metadata and controls
83 lines (82 loc) · 1.87 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
79
80
81
82
83
version: "3"
services:
database:
image: bitnami/postgresql:14
container_name: database
restart: unless-stopped
environment:
- POSTGRESQL_POSTGRES_PASSWORD=postgres
- POSTGRESQL_USERNAME=postgres
- POSTGRESQL_PASSWORD=postgres
- POSTGRESQL_DATABASE=postgres
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 30s
timeout: 10s
retries: 5
opensearch:
image: elasticsearch:7.17.16
container_name: opensearch
restart: unless-stopped
environment:
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
ports:
- 9200:9200
- 9600:9600
healthcheck:
test:
[
"CMD-SHELL",
"curl --silent --fail localhost:9200/_cluster/health || exit 1",
]
interval: 30s
timeout: 10s
retries: 5
cache:
image: eqalpha/keydb
container_name: cache
restart: unless-stopped
command:
- keydb-server
- --server-threads 2
- --requirepass dev
ports:
- 6379:6379
healthcheck:
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
interval: 30s
timeout: 5s
retries: 5
pgsync:
image: ifelsedotone/pgsync:latest
container_name: pgsync
restart: always
environment:
- PG_HOST=database
- PG_PORT=5432
- PG_USER=postgres
- PG_PASSWORD=postgres
- PG_SSLMODE=disable
- ELASTICSEARCH_HOST=opensearch
- ELASTICSEARCH_PORT=9200
- REDIS_HOST=cache
- REDIS_PORT=6379
- REDIS_AUTH=dev
volumes:
- "./pgsync.json:/etc/schema.json"
depends_on:
cache:
condition: service_healthy
opensearch:
condition: service_healthy
database:
condition: service_healthy