-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
43 lines (40 loc) · 1.14 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
version: "3.9"
services:
web:
image: "abhishekcoder/appointment-directory:latest"
networks:
- web-network
environment:
- SPRING_REDIS_HOST=redis
- SPRING_REDIS_PORT=6379
- SPRING_REDIS_PASSWORD="wUJjKN6j9VdVoWYPDKN8Zp910zeP9vWn"
- SPRING_REDIS_AUTH=false
depends_on:
- redis
build: .
ports:
- "8080:8080"
redis:
image: "redis/redis-stack:latest"
networks:
- web-network
restart: always
ports:
- "6377:6379"
- "8001:8001"
rediscli:
image: "redis:latest"
networks:
- web-network
depends_on:
- redis
links:
- redis
command: >
sh -c "redis-cli -h redis FT.CREATE idx-status ON JSON SCHEMA $$.status as status TAG
&& redis-cli -h redis FT.CREATE idx-aptDate ON JSON SCHEMA $$.appointmentDateTime as appointmentDateTime NUMERIC SORTABLE
&& redis-cli -h redis FT.CREATE idx-desc ON JSON SCHEMA $$.description as description TEXT
&& redis-cli -h redis FT.CREATE idx-createdTime ON JSON SCHEMA $$.createdTime as createdTime NUMERIC SORTABLE "
networks:
web-network:
driver: bridge