-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 823 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
35 lines (33 loc) · 823 Bytes
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
services:
redis:
image: redis:7-alpine
container_name: local_redis
ports:
- "6379:6379" # optional (only needed if you want host access)
volumes:
- redis_data:/data # optional (persist data)
command: ["redis-server", "--appendonly", "yes"]
restart: unless-stopped
redis-commander:
image: rediscommander/redis-commander:latest
container_name: redis_commander
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- "8081:8081"
depends_on:
- redis
restart: unless-stopped
# app:
# build: .
# container_name: "migration_tool"
# ports:
# - "3000:3000"
# environment:
# - REDIS_HOST=my_redis
# - REDIS_PORT=6379
# depends_on:
# - redis
# restart: unless-stopped
volumes:
redis_data: