-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (39 loc) · 905 Bytes
/
docker-compose.yml
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
services:
redisdb:
image: redis:latest
ports:
- 6379:6379
networks:
- redis
volumes:
- redis-data:/data
redisinsight:
image: redislabs/redisinsight:latest
volumes:
- redisinsight-data:/data
ports:
- 5540:5540
networks:
- redis
depends_on:
- redisdb
# Add Redis DB configuration into Redis Insight
# Refer - http://localhost:5540/api/docs#/Database/DatabaseController_create
redisdb-setup:
image: curlimages/curl
command: >
-s -v -X "POST" "http://redisinsight:5540/api/databases"
-H "Content-Type: application/json; charset=utf-8"
-d '{"host": "redisdb", "port": 6379, "name": "RedisDB Docker"}'
depends_on:
- redisdb
- redisinsight
restart: "on-failure"
networks:
- redis
volumes:
redis-data:
redisinsight-data:
networks:
redis:
driver: bridge