-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (43 loc) · 1.17 KB
/
docker-compose.yml
File metadata and controls
44 lines (43 loc) · 1.17 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
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:9.1.5
container_name: csp_elasticsearch
environment:
bootstrap.memory_lock: true
discovery.type: single-node
xpack.security.enabled: "false"
ports:
- "9200:9200"
mem_limit: 1g
ulimits:
memlock:
soft: -1
hard: -1
healthcheck:
test: curl --fail http://localhost:9200/_cluster/health?wait_for_status=green || exit 1
interval: 1s
retries: 60
postgresql:
image: pgvector/pgvector:pg16
container_name: csp_postgresql
env_file:
- env.d/postgresql
environment:
# Avoid a log error when starting the itou_postgres container:
# > Role "root" does not exist.
# Without this variable, the default Unix account ('root')
# is used automatically when starting postgres.
# https://www.postgresql.org/docs/current/libpq-envars.html
- PGUSER=postgres
- PGPASSWORD=password
ports:
- "5432:5432"
healthcheck:
test:
- "CMD-SHELL"
- "pg_isready"
- "-d"
- "$${POSTGRES_DB}"
interval: 10s
timeout: 5s
retries: 5