-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
64 lines (58 loc) · 1.47 KB
/
docker-compose.yaml
File metadata and controls
64 lines (58 loc) · 1.47 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
services:
api:
image: endless-api:latest
build:
context: .
dockerfile: Backend/API/Dockerfile
depends_on:
db:
condition: service_healthy
search:
condition: service_started
environment:
ASPNETCORE_ENVIRONMENT: Development
ConnectionStrings__DB: Host=db;Port=5432;Database=${DB_NAME};Username=${DB_USER};Password=${DB_PASSWORD}
JwtSettings__SecretKey: ${SecretKey}
JwtSettings__Issuer: ${Issuer}
JwtSettings__Audience: ${Audience}
JwtSettings__ExpireMinutes: ${ExpireMinutes}
ports:
- 5000:8080
db:
image: postgres:18.3
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
ports:
- 5433:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- postgres-data:/var/lib/postgresql
search:
image: elasticsearch:9.3.3
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- ES_JAVA_OPTS=-Xms1g -Xmx1g
ports:
- "9200:9200"
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data
kibana:
image: kibana:9.3.3
ports:
- "5601:5601"
environment:
- ELASTICSEARCH_HOSTS=http://search:9200
depends_on:
- search
#cache:
# image: redis
volumes:
postgres-data:
elasticsearch_data: