-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
56 lines (52 loc) · 1.19 KB
/
docker-compose.yaml
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
version: '3'
services:
postgres:
image: postgres:13
environment:
POSTGRES_DB: ${POSTGRES_NAME}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
# - ./postgres/data:/var/lib/postgresql/data
- ./inserts.sql:/docker-entrypoint-initdb.d/dump.sql:ro
ports:
- '5432:5432'
redis:
image: redis:latest
container_name: redis
restart: always
ports:
- "6379:6379"
elastic:
image: elasticsearch:8.6.2
healthcheck:
test: curl -f 127.0.0.1:9200 || exit 1
interval: 10s
timeout: 10s
depends_on:
- postgres
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms200m -Xmx200m"
ports:
- '9200:9200'
elastic_index_maker:
build: src/es_index_maker
environment:
- HOST=${ES_HOST}
- PORT=${ES_PORT}
depends_on:
elastic:
condition: service_healthy
etl:
build: src/etl
depends_on:
elastic:
condition: service_healthy
elastic_index_maker:
condition: service_started
postgres:
condition: service_started
env_file:
- .env